Installation Instructions --------------------------------------- Copy spamassassin_wrapper.py to a desired directory and make sure that it is executable by the user you choose to run your spamassassin process. ('spamuser' in this particular example) Running ------- 1) Open $POSTFIX_HOME/master.cf 2) Edit the following line: smtp inet n - n - - smtpd to: smtp inet n - - - - smtpd -o content_filter=spamassassin 3) Add the 'spamassassin' filter in the bottom of the file: spamassassin unix - n n - - pipe flags=Rq user=spamuser argv=/path1/spamassassin_wrapper.py --pipe /path2/spamassassin --pipe /path3/sendmail -oi -f ${sender} ${recipient} where: path1 - the full path to the spamassassin_wrapper.py path2 - the full path to the spamassassin executable path3 - the full path to **Postfix'** sendmail You can provide additional / other parameters to spamassassin, sendmail and spamassassin_wrapper.py. Consult the man pages for more details. (Use 'spamassassin_wrapper.py -h' to display the full parameter list for spamassassin_wrapper itself) Additional information: http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix