informatique:reseau:messagerie:postfix:spamassassin_en_content_filter

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_filter spamassassin :
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
  • informatique/reseau/messagerie/postfix/spamassassin_en_content_filter.txt
  • Dernière modification : 2012/02/03 14:31
  • de bn8