SpamAssassin en content_filter
Editer le fichier /etc/postfix/master.cf :
- Ajouter -o content_filter=spamassassin :
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (50)
# ==========================================================================
smtp inet n - - - - smtpd
-o content_filter=spamassassin
- Définir le
content_filterspamassassin :
spamassassin unix - n n - - pipe
user=nobody argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}
Il ne vous reste donc plus qu'a redémarrer Postfix :
/etc/init.d/postfix restart