-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2015/04/07 07:58, Steffen Kaiser wrote:> > Is this script executable for all, e.g.: > > chmod a+x /path/to/scriptyes. 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. - -- John Perry - WX5JP http://www.jpunix.net https://www.digitalocean.com/?refcode=b90b690ca5bb https://lastpass.com/f?3921926 -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJVI9frAAoJEIn5ENyiI2/NsW8P/1izBZ+32eIF34TgJZUKReca LzDC6hXya5Gc4PQ/jAN1LyP26/nd6WGqljtK3wj2qRoclp9+7iVNOsxi3zvFIMME orl1u5vAqQPcR9//BLoYxYy5HS0aEZS1YzuH2Mvxs9Dt+Bh+aJjpn5nsRiO32bRG CLviuVddxHwf6DkLbhIp2ybnZCCyTtWZ22NwsAAwRwocGBKi/vpQ83lUB398Ojn9 aVHEnkzd+QbilPcaU5k4SY/evACDnll4a1m9eBZm5VIvGWnDjmVXUSx+iHODol9X obSSFcXPJRMpq7JBdzpnlyP2EJBMjZun52T7oBA+SpoCKamtZaUzW2r9Q3aAgrYr F88K8EAGrRZgMI8cBwfFAntkygu6SCaWVULMqlmTv+XqyMlKWt+HAfc0EiFSJdos lzryDnU64regk3Y3GknOIxVDT7KzrXGP7MwUPHSqbgYxcKGbas70P8Py4aGYexlJ oNEUTBCb+pS4pzmPpu6QCCt7B0hoU7ZNWs8tlOEVZyFN3I+iAElZf939ciF/2o7E d/gLgmKbt0kRz5LPmKFts8Aw0lZshkk1FEoW+/DvGNCzpf4IpYQjvBl2h4rQmtuo jqoycFCHGCw0bXvohe2g4ZoRZmF0EUqWa7hfHbYxNZRpLa/ygEgYnA9CZPps5WXZ UtX9CydP8CwHHQ8JOjOI =rSXU -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 04/07/2015 08:14 AM, 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.I can confirm that I'm having the exact same issue. If I run the script manually, I get the 'help file' for sa-learn dumped into the log file. But the file is never created when mail comes in or is processed. Anthony -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJVJEvJAAoJEAKK33RTsEsVaX8P/Alj3RNVQst53zcOxkuBHW0I Ibd399Wxt7DBZYabbPhtR75Rffqa84ROaAfmx+ExibDms8VLxmG3HmrJHL2tUCbI /E4pDS9MyC08akweSRphQHFxhvu9LvKsVsnvGKP2gJ/Z4LDlqJ7KiB4+BPhohXL9 yoZ1zynQ43Ubh5cC/IG+k8zuXfsiUBmLo/8GLDcjs8Pqrx+C6mdpdXj3HWBm26ma 251ZIMAoKk301xSJhy3eZB7uzYPEJm+Lf74jGDrDUTmg+eC2DG/XRITcCSqoo33h NZzL7iyquUPUHG6mEdfOooK15o+j9roV2pQ1bWgKdMNc6+6roWPPZLALighutpBn Wjo72CcK7gL1dRdjDz0Ar2MqIPOoDwygpxOEIlB+//PxNvnOsIsiujMU0U1imTCf R+zHLYwIMTO1UYWbC4OtT+j8drV/mSNS2PCnBi4T8VNoUW/3oOa1TeWfom+VwlBC RfWYvE04cqMbOB1cUJVGx5/o1LFwZde29I56SAYOpHqE+H5BWPRvbLM9W39L01B+ ZgDteFg5VNH2DJF3nJFjj1mX5Llif2ZUoneiELu1bmI+A0Za7dEDje+Xhekf8NEn 4dkH57DhiALynw5dx3GrMhNMUXI2nQYGP/1DFRCvPujsS/H6neT/HtnAyZpflNnI r2WyS7tfbctyEHxaBYXH =yHyk -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVSTya3z1H7kL/d9rAQKLDgf/QePW7F6Hy1pZR67SE33LykLPnL3fA4m0 u76fLz0hauGQOHCrdBIjtAtlYO7zxkZdW4Lv8zvnEmhrhZW6subluPliAMIHHutB 06YVU6Hp5aVLoQRY2+LYxU9yjiMFjBFhN3JkOy5mih1H8i3kp4/t91sfEDHzO+3f PJl61eNmhnxKg9AX3sQTAQt7AmdSLsCr4mGarISIcmi4P11wV7i+oWhxLEkW3/KX PM+q8aM7h1VMt+aCFKJ0eTDAtMypIrzauqjb63+T/urJutPHEhi5njxUQ0aKiM01 3j7SeEmwLQWj8YFYQ7MXmfEc9Ye5zVhFOOe0ohiTd3I+ZK59X49ecw==TO57 -----END PGP SIGNATURE-----
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 KaiserAfter checking I've determined that SELinux is NOT active. -- John Perry - WX5JP http://www.jpunix.net https://www.digitalocean.com/?refcode=b90b690ca5bb https://lastpass.com/f?3921926