Procmail Postfix issue

Posted by Blucreation on Server Fault See other posts from Server Fault or by Blucreation
Published on 2012-11-01T11:43:59Z Indexed on 2012/11/02 11:04 UTC
Read the original article Hit count: 383

Filed under:
|
|
|

Our server is using CENTOS uses postfix:

Nov  1 11:31:52 webserver postfix/smtpd[30424]: 822A91872F: client=unknown[5.133.168.42], sasl_method=PLAIN, [email protected]
Nov  1 11:31:52 webserver postfix/cleanup[30427]: 822A91872F: message-id=<[email protected]>
Nov  1 11:31:52 webserver postfix/qmgr[1067]: 822A91872F: from=<[email protected]>, size=620, nrcpt=1 (queue active)
Nov  1 11:31:52 webserver postfix/virtual[30505]: 822A91872F: to=<[email protected]>, relay=virtual, delay=0.12, delays=0.12/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Nov  1 11:31:52 webserver postfix/qmgr[1067]: 822A91872F: removed
Nov  1 11:31:52 webserver postfix/smtpd[30424]: disconnect from unknown[5.133.168.42]

I have this in my etc/postfix/main.cf:

mailbox_command = /usr/bin/procmail -a "$EXTENSION"

My etc/procmailrc contains:

PATH="/usr/bin"
SHELL="/bin/bash"
LOGFILE="/var/log/procmail.log"
VERBOSE="YES"
LOG="#TEST#"

I don't think procmail is picking up on my procmailrc as nothing ever gets logged from normal emails.

If i type this:

procmail DEFAULT=/dev/null VERBOSE=yes LOGFILE=/var/log/procmail.log /dev/null </dev/null

I get entries in my log file so i know procmail is working

Am i doing something wrong? am i missing something?

I eventually want my rule to call a php script only if the subject contains "SUPPORT TICKET" and the to is "[email protected]"

but that's once i this issue solved.

© Server Fault or respective owner

Related posts about linux

Related posts about email