procmail
[Top] [All Lists]

Formail /"mail" will not send mail out

2008-10-09 06:29:48
Hi,

after I have migrated to Webmin, my .procmailrc will not work properly.
This script has worked before the migration (from ISPConfig to Webmin), but not now. From the debug logfile, it looks for me, that formail is working, but I didn't see anything from "mail" and no logfile in the mail.log

I would like to grep the subject content and forward the subject in a new mail to my mobile phone as a notification per SMS. I only see, that the mail is normally stored into the Maildir folder, but I didn't see any outgoing mail.


# cat .procmailrc
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
ORGMAIL=$MAILDIR
LOGFILE=$HOME/.procmail_log
VERBOSE=9

:0
* ^Subject:(.*\<)\/[^ ].*
{
  SUB=$MATCH
}

:0c
| formail -r -A "Subject:.*Anrufbeantworter" | mail -s "$SUB" number(_at_)t-mobile-sms(_dot_)de


Logfile:

procmail: [10140] Thu Oct  9 12:13:24 2008
procmail: Assigning "MATCH="
procmail: Matched "Anrufbeantworter"
procmail: Match on "^Subject:(.*\<)\/[^ ].*"
procmail: Assigning "SUB=Anrufbeantworter"
procmail: Executing " formail -r -A "Subject:.*Anrufbeantworter" | mail -s "$SUB" number(_at_)t-mobile-sms(_dot_)de" procmail: Assigning "LASTFOLDER= formail -r -A "Subject:.*Anrufbeantworter" | mail -s "$SUB" number(_at_)t-mobile-sms(_dot_)de" procmail: Assigning "LASTFOLDER=/var/www/web1/user/ab/Maildir/new/1223547204.10140_0.lvpsxxx" procmail: Notified comsat: "ab(_at_)0:/var/www/web1/user/ab/Maildir/new/1223547204.10140_0.lvpsxxx"
From carsten@<domain>.de  Thu Oct  9 12:13:18 2008
Subject: Anrufbeantworter
Folder: /var/www/web1/user/ab/Maildir/new/1223547204.10140_0.lvps87- 1430
procmail: Assigning "EXITCODE=0"


Regards,

Carsten

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>