Skip to content

Instantly share code, notes, and snippets.



Last active Sep 1, 2015
What would you like to do?
Spamassassin and postfix on Ubuntu 14.04


apt-get install spamassassin postfix

in /etc/postfix/ modify;

smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=spamassassin

and add:

spamassassin    unix  -       n       n       -       -       pipe
  flags=Rq user=nobody argv=/usr/bin/spamc -u ${user} -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Spamc will now be run as the user reciving the email and then delivered with sendmail back

service spamassassin restart
postfix reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment