AW: Mails not processed

Daniel Fuhrer daniel at danielf.ch
Tue Mar 27 12:28:47 CEST 2007


Hi Glen

Thanks fort he quick response.
So I changed all the options in clamav-wrapper so these errors are fixed.
But now is there a new Message:

Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE / at /usr/local/lib/MailScanner/MailScanner/SweepOther.pm line 489.

And the main problem still exists. Some mails are not processed. I still get a bunch of this EOCD signature failures.
In the logfile is the following entry, for each mail that mailscanner can't scan:
SpamAssassin cache hit for message <messageid>

Best Regards,
Daniel



-----Ursprüngliche Nachricht-----
Von: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] Im Auftrag von Glenn Steen
Gesendet: Dienstag, 27. März 2007 11:34
An: Mailscanner
Betreff: Re: Mails not processed

On 27/03/07, Daniel Fuhrer <daniel at danielf.ch> wrote:
> Hi all
> So I found some Errors they seems to be related to my problem, that mailscanner doesent process some mails.
>
> When I start mailscanner I get the following error for each child process:
>
> Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin.pm line 1050.
>
> Around that line 1050 is the code:
>
> 1047:   sub read_scoreonly_config {
> 1048:     my ($self, $filename) = @_;
> 1049:
> 1050:     if (!open(IN,"<$filename")) {
> 1051:       # the file may not exist; this should not be verbose
> 1052:       dbg("config: read_scoreonly_config: cannot open \"$filename\":  $!");
> 1053:       return;
> 1054:     }
I'm not sure about this one, haven't seen it myself... Fix the next
one and see if it persists...

>
> After starting I get the following errors:
>
> Ignore errors about failing to find EOCD signature
> /usr/local/bin/clamscan: unrecognized option `--unarj'
> ERROR: Unknown option passed.
> ERROR: Can't parse the command line

This error is due to you uncommenting (in
/usr/lib/MailScanner/clamav-wrapper) one of the lines:
# Uncomment ONE of the following lines if you have unarj installed
#ExtraScanOptions="$ExtraScanOptions --unarj"
#ExtraScanOptions="$ExtraScanOptions --unarj=/path/to/unarj"
But teh thing is, with modern clamscan versions at least, that option
has been renamed (snippet from clamscan --help):
...
    --unrar[=FULLPATH]                   Enable support for .rar files
    --arj[=FULLPATH]                     Enable support for .arj files
    --unzoo[=FULLPATH]                   Enable support for .zoo files
...
So you should change it accordingly.

> And I think when he tries to process some mail, that he can't I get the following message:
>
> format error: can't find EOCD signature
>  at /usr/local/sbin/mailscanner line 832
The "Cannot find EOCD" errors should be possible to safely ignore...
As the comments tell you, when starting the debug;-).

Cheers
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
-- 
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! 


More information about the MailScanner mailing list