Mailscanner stuck in endless loop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mailscanner (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mailscanner
Mailscanner is stuck in an endless loop; it scans the messages held in the postfix queue again and again and there are no "requeue" notices, like on a working server. In the mean time, server is incapable of processing mail, unless the scanner is disabled, and in my case, Postfix does not hold incoming messages.
Where MailScanner --lint on Debian 5 says (including the = characters):
(..snip...)
=======
Filename Checks: Windows/DOS Executable (1 eicar.com)
Other Checks: Found 1 problems
Virus and Content Scanning: Starting
=======
It says this on Ubuntu 10.04:
(..snip...)
=======
Insecure dependency in chown while running with -T switch at /usr/share/
It seems to crash there.
In [1] (post 11), it is explained how adding "-c ${user}" to the init script to make mailscanner run as a different user seemed to work.
Affected versions:
According to [1], it started in Ubuntu 9.10. My Ubuntu is 10.04.
My Mailscanner version = 4.74.16-1
Postfix = 2.7.0-1ubuntu0.1
Perl: 5.10.1-8ubuntu2.1
More information can be found at [2], my question at serverfault about it I asked earlier.
Priority is high, in my opinion, because the server just can't operate.
[1] http://
[2] http://
I confirmed that running "MailScanner --lint" as user postfix (which it should, according to my configuration) doesn't give that error. I set postfix' shell to /bin/bash and ran
su -c "MailScanner --lint" postfix
successfully.
The fix posted in that forum post (adding -c ${user} to the start-stop-daemon command) may work, but it's not the way it should (for one, my working Debian install doesn't have this). Apparently, MailScanner doesn't set its run-as user properly, even though ps axu shows:
postfix 11138 0.2 3.3 106580 33892 ? SNs 09:34 0:00 MailScanner: starting children
postfix 11139 7.2 0.0 0 0 ? ZN 09:34 0:01 [MailScanner] <defunct>
postfix 11173 10.0 0.0 0 0 ? ZN 09:34 0:01 [MailScanner] <defunct>
postfix 11269 15.8 0.0 0 0 ? ZN 09:34 0:01 [MailScanner] <defunct>
postfix 11303 26.2 0.0 0 0 ? ZN 09:34 0:01 [MailScanner] <defunct>
postfix 11354 70.5 8.1 174156 82940 ? SN 09:35 0:01 MailScanner: checking with Spam Lists
postfix 11364 2.0 7.9 178376 80976 ? RNs 09:35 0:00 MailScanner: checking with Spam Lists