26

Re: ANTISPAM via Dovecot and Spamassassin

No clue yet, sorry. I suggest ask support in Dovecot mailing list instead.

27

Re: ANTISPAM via Dovecot and Spamassassin

Ok I sent an email on the dovecot mailing-list, thanks for your help

28

Re: ANTISPAM via Dovecot and Spamassassin

Any luck with this issue?  I'm having the same problem, looking for advice.

29

Re: ANTISPAM via Dovecot and Spamassassin

Well, yesterday i've made upgrade my debian to version 8.2 and after that dovecot antispam stop working ;-)/can't move any mails to Junk folder, only from Trash it was working/.
I've changed antispam_pipe_program = /usr/bin/sa-learn
to
antispam_pipe_program = /usr/bin/sa-learn-pipe.sh
and now it's working again and i can move message from inbox to Junk without any problems.

30 (edited by b.loyez 2015-10-04 06:06:24)

Re: ANTISPAM via Dovecot and Spamassassin

As lamagra said you must replace:
antispam_pipe_program = /usr/bin/sa-learn
by
antispam_pipe_program = /usr/bin/sa-learn-pipe.sh

and create the following sa-learn-pipe.sh file in /usr/bin/ (ex: sudo nano /usr/bin/sa-learn-pipe.sh)

Write the following code:

#!/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

Save the file (CTRL+o then CTRL+x)

Then make it executable:
sudo chmod +x /usr/bin/sa-learn-pipe.sh

Restart dovecot
sudo service dovecot restart

Tell me if it works as expected (Tested on Ubuntu 14.xx)

Source:
http://wiki2.dovecot.org/Plugins/Antispam