B
brooks
Guest
If you stop SA, or if it dies it appears that mail can be lost if you allow per user filter settings. Qmail happily accepts the mail but when it trys to hand it off to spamc for processing it fails to open the socket:
Aug 31 09:50:40 ds spamc[4465]: connect(AF_UNIX) to spamd /tmp/spamd_light.sock failed: Connection refused
which results in lost mail. To test this you can do cat a message through spamc using the same commands as are listed in the users .qmail file:
cat Maildir/cur/1157137453.28119.ds.server.com\:2\,S | /usr/local/psa/bin/psa-spamc -u [email protected] -U /tmp/spamd_light.sock -E
When spamd is not running the exit status is "98", when it is running the exit status is "0" (since this message isn't spam). Given the information in the spamc man page at:
http://spamassassin.apache.org/full/3.0.x/dist/doc/spamc.html
It looks like spamc should exit with a "0" status in the event of an error. Given the .qmail script that would allow the message to be delivered in the event of a failure, unfortunately it isn't working.
After looking at the spamc code it really doesn't make any sense that it exists with a "98", it's not even a valid exit code.
This server is running CentOS 3.8. Can anyone else confirm this on the same or on another OS?
Aug 31 09:50:40 ds spamc[4465]: connect(AF_UNIX) to spamd /tmp/spamd_light.sock failed: Connection refused
which results in lost mail. To test this you can do cat a message through spamc using the same commands as are listed in the users .qmail file:
cat Maildir/cur/1157137453.28119.ds.server.com\:2\,S | /usr/local/psa/bin/psa-spamc -u [email protected] -U /tmp/spamd_light.sock -E
When spamd is not running the exit status is "98", when it is running the exit status is "0" (since this message isn't spam). Given the information in the spamc man page at:
http://spamassassin.apache.org/full/3.0.x/dist/doc/spamc.html
It looks like spamc should exit with a "0" status in the event of an error. Given the .qmail script that would allow the message to be delivered in the event of a failure, unfortunately it isn't working.
After looking at the spamc code it really doesn't make any sense that it exists with a "98", it's not even a valid exit code.
This server is running CentOS 3.8. Can anyone else confirm this on the same or on another OS?