Need a bit of help with the antispam plugin

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed Apr 8 11:25:50 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 8 Apr 2015, John Perry wrote:
> Steffen Kaiser:
>> On Tue, 7 Apr 2015, John Perry wrote:
>>> On 2015/04/07 07:58, Steffen Kaiser wrote:
>>>>
>>>> Is this script executable for all, e.g.:
>>>>
>>>> chmod a+x /path/to/script
>>
>>> yes. That was the first thing I did.
>>
>>>> Is the script located in a directory everybody are allowed to execute,
>>>> e.g. /usr/local/bin or /usr/bin .
>>
>>> Yes. It is in /usr/bin named antispam.sh
>>
>>>> Can you run, e.g.:
>>>>
>>>> sudo -u nobody /path/to/script
>>>>
>>>> and something is happening?
>>
>>> yes. I can execute it as "nobody" and a resultant log file is created.
>>> Since it was run with no parameters the log file basically says I need
>>> to pass arguments to sa-learn.
>>
>>> Also I'm running iRedMail-0.9.0 and trying to set up the spam filter
>>> based on the intructions found on the webpage
>>> http://www.iredmail.org/forum/topic8169-iredmail-support-antispam-via-dovecot-and-spamassassin.html.
>>> I DO see that the MySQL database is being updated when a new message
>>> comes in.
>>
>> Do you have SELinux active?
>> See almost at the end of
>> http://wiki2.dovecot.org/WhyDoesItNotWork?highlight=%28selinux%29
>>
>> -- Steffen Kaiser
>
> After checking I've determined that SELinux is NOT active.

Do you run Dovecot in a chroot?

====

OK, "run program failed with exit code" is nowhere in the sources I have 
for Dovecot v2.2, neither in Dovecot itself, Sieve, nor Antispam. Error -1 
is a fairly generic one. Is it possible that for any other reason, Dovecot 
does not find the specified pipe program?

Can you grab the source of the plugin?

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBVSUQPnz1H7kL/d9rAQKjtAf+Nz7nTY7dvU5vi6WNzpufSGgvtUdmw0Ib
EtSMRz1uiMzM9GNc2/q1U8Ti27wBPfv6EadkEDA2IaZeJaFB6ATnb/sa/WpObafT
ZVfHvfomkc+VN8NOJgpegZDM/4fChgPGIlzveIiqo9oMQIFEdTcRubl7zynVHSMK
zXK1EufFntXnxhceI14K32u5Yv2ohYK+gkpvQjZbSyGGq/a71vOs/3Uehs+iN3eJ
lOjlbtGz/rWNbaO7rQLUznWkwWpQTuSGOe6zjxPVrqR23P3eIzBnAq0FMGqCQ23H
5VJ+lsCbAsQtecgxfV1OOPayTJ61j8skWWSVsp9Y55JYinPR1X5Vog==
=XE8z
-----END PGP SIGNATURE-----


More information about the dovecot mailing list