Dovecot Antispam plugin on Centos (iredmail compatible)

Configured email server with Dovecot 2.2.x on Centos / RHCE

Install Build Requirements

Install dovecot-antispam-plugin


Compile and Install

Configure: /etc/dovecot/dovecot.conf

Configure: /usr/local/bin/

cat > /usr/local/bin/ <<EOF

echo /usr/bin/sa-learn $* /tmp/sendmail-msg-$$.txt echo “$$-start ($*)” >> /tmp/sa-learn-pipe.log

#echo $* > /tmp/sendmail-parms.txt cat<&0 >> /tmp/sendmail-msg-$$.txt

/usr/bin/sa-learn $* /tmp/sendmail-msg-$$.txt && rm -f /tmp/sendmail-msg-$$.txt &

echo “$$-end” >> /tmp/sa-learn-pipe.log

exit 0

Restart Services

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *