Postfix and Procmail
From: Anthony (tech1_at_canyon-tele.com)
Date: 06/06/04
- Next message: Michael: ""My Computer" or drives:/ doesn't do anything"
- Previous message: Robert Gordon: "Sound server fatal error & "artsmessa""
- Next in thread: Kevin Nathan: "Re: Postfix and Procmail"
- Reply: Kevin Nathan: "Re: Postfix and Procmail"
- Reply: Panama Red: "Re: Postfix and Procmail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 06 Jun 2004 17:04:26 GMT
Trying to get a better understanding on how Procmail interacts with
Postfix.
I am using amavisd which seems to hand off to a anti-virus scanner and
spamassassin.
I have a /etc/procmailrc file that looks like this( this is straight out
of /usr/share/doc/packages/postfix/SPAMASSASSIN+POSTFIX.SuSE)
#LOGFILE=/tmp/procmail.log
#VERBOSE=yes
SENDER=$1
SHIFT=1
# Until now, mail is untagged, you may add rules for
# mail that must not be tagged
:0 hbfw
| /usr/bin/spamc
# Now mail is tagged by spamassassin
# You may insert other rules here
:0
| /usr/sbin/sendmail -i -f "$SENDER" -- "$@"
My /etc/postfix/master.cf has the following line( this is straight out
of /usr/share/doc/packages/postfix/SPAMASSASSIN+POSTFIX.SuSE)
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.
#PROCMAILDIR=$HOME/.procmail
VERBOSE=yes # Set to yes when debugging
PATH=:/usr/bin:/usr/ucb:/bin:/usr/local/bin:$HOME/bin:.
MAILDIR=$HOME/MAIL # You'd better make sure it exists
DEFAULT=$MAILDIR/INCOMING
LOGFILE=$MAILDIR/proc.log
LOCKFILE=$HOME/.lockmail
#INCLUDERC=$PROCMAILDIR/lists.rc
#:0
#* ^Subject.*SPAM*
#TEST
:0:
* ^Subject: .*test*
INCOMING
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
even working....
Any help is appreciated. I banged on this all day yesterday with no luck.
Anthony
- Next message: Michael: ""My Computer" or drives:/ doesn't do anything"
- Previous message: Robert Gordon: "Sound server fatal error & "artsmessa""
- Next in thread: Kevin Nathan: "Re: Postfix and Procmail"
- Reply: Kevin Nathan: "Re: Postfix and Procmail"
- Reply: Panama Red: "Re: Postfix and Procmail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|