Dovecot Antispam plugin on Centos (iredmail compatible)

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

Install Build Requirements

Install dovecot-antispam-plugin

Download

Compile and Install

Configure: /etc/dovecot/dovecot.conf

Configure: /usr/local/bin/sa-learn-pipe.sh

cat > /usr/local/bin/sa-learn-pipe.sh <<EOF
#!/bin/bash

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
EOF

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 *