Postfix and Procmail
From: Anthony (tech1_at_canyon-tele.com)
Date: Sun, 06 Jun 2004 17:04:26 GMT
Trying to get a better understanding on how Procmail interacts with
I am using amavisd which seems to hand off to a anti-virus scanner and
I have a /etc/procmailrc file that looks like this( this is straight out
# Until now, mail is untagged, you may add rules for
# mail that must not be tagged
# Now mail is tagged by spamassassin
# You may insert other rules here
| /usr/sbin/sendmail -i -f "$SENDER" -- "$@"
My /etc/postfix/master.cf has the following line( this is straight out
smtp inet n - y - - smtpd -o content_filter=procmail:filter
My /etc/posfix/main.cf has the following changes
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
So ,if I am reading this right /etc/postfix/master.cf should hand off the
mail to /etc/procmailrc while it is processing the mail, right?
~/.procmailrc will run whenever a user gets his mail, right?
I turned off amavisd to keep things simple.
My ~/.procmailrc doesn't seem to work.
It looks like this
# Please check if all the paths in PATH are reachable, remove the ones that
# are not.
VERBOSE=yes # Set to yes when debugging
MAILDIR=$HOME/MAIL # You'd better make sure it exists
* ^Subject: .*test*
Emails with test in the subject should go to the INCOMING box which is
located ~/MAIL/INCOMING. This is not happening.
The LOGFILE shows nothing at all which is odd. Makes me wonder if it is
Any help is appreciated. I banged on this all day yesterday with no luck.