MaiScanner --debug hangs
Robert Lopez
rlopezcnm at gmail.com
Mon Jun 8 19:24:43 IST 2009
On Fri, Jun 5, 2009 at 5:32 PM, Steve Freegard<steve.freegard at fsl.com> wrote:
> Robert Lopez wrote:
>> I am in the process of testing an install of MailScanner 4.77.6
>> installed on a test gateway.
>> Email is flowing in and out of the gateway but noting seems to be
>> stopped or tagged when it should.
>> I just tried the "--debug" option...
>>
>> # MailScanner --debug
>> In Debugging mode, not forking...
>> Trying to setlogsock(unix)
>> Building a message batch to scan...
>>
>> and the maillog file says:
>> Jun 5 10:33:22 mg04 MailScanner[5063]: MailScanner E-Mail Virus
>> Scanner version 4.77.6 starting...
>> Jun 5 10:33:22 mg04 MailScanner[5063]: Read 854 hostnames from the
>> phishing whitelist
>> Jun 5 10:33:22 mg04 MailScanner[5063]: Read 10149 hostnames from the
>> phishing blacklists
>> Jun 5 10:33:22 mg04 MailScanner[5063]: Using SpamAssassin results cache
>> Jun 5 10:33:22 mg04 MailScanner[5063]: Connected to SpamAssassin
>> cache database
>> Jun 5 10:33:22 mg04 MailScanner[5063]: Enabling SpamAssassin
>> auto-whitelist functionality...
>> Jun 5 10:33:23 mg04 MailScanner[5063]: I have found clamavmodule
>> scanners installed, and will use them all by default.
>> Jun 5 10:33:23 mg04 MailScanner[5063]: Connected to
>> processing-messages database
>> Jun 5 10:33:23 mg04 MailScanner[5063]: Found 0 messages in the
>> processing-messages database
>> Jun 5 10:33:23 mg04 MailScanner[5063]: Using locktype = flock
>>
>> Then nothing more happens.
>>
>> Is the processing-messages database missing? is it the SpamAssassin
>> cache database? or part of clamav?
>>
>
> None of the above; when you run in debug mode a single MailScanner child
> starts up and waits for messages; it you've stopped your inbound MTA
> then it will just sit there waiting as you have found.
>
> Try (modify to suit your OS):
> /etc/init.d/MailScanner stop
> /etc/init.d/MailScanner startin
> /etc/init.d/MailScanner startout
> MailScanner --debug
>
> Regards,
> Steve.
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
This may be my confusion: When "MailScanner --lint" runs it creates a
fake batch of email containing EICAR and virus scans it. My
expectation is when "MailScanner --debug" runs and it says it is
"Building a message batch to scan..." that it is doing the same thing
and building a test batch. But it seems that it is actually waiting to
build up a batch of emails arriving from postfix?
More information about the MailScanner
mailing list