MailScanner stoped working after PERL upgrade (I think so)
[UTF-8] Boris Jordanov / ÐоÑÐ¸Ñ ÐоÑданов
boris.jordanov at GMAIL.COM
Tue Dec 6 08:51:42 GMT 2005
[ The following text is in the "UTF-8" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Julian Field wrote:
>
> On 6 Dec 2005, at 07:55, Boris Jordanov / ^Q>@8A ^Y>@40=>2
> wrote:
>
>
>>>Julian Field wrote:
>>>
>>>>Something is very wrong with your system. Here's what I get with your
>>>>message:
>>>>
>>>>MsgContSize=635 DataOffset=346 NumRecips=1
>>>>Content size = 635
>>>>Data offset = 346
>>>>Num Recips = 1
>>>>
>>>>which looks fine to me.
>>>>
>>>
>>>I've touched the code:
>>>
>>> # Read the initial record.
>>> # Provides Message content size, data offset and recipient count
>>> ($rectype, $recdata) = ReadRecord($RQf);
>>> print "1st $rectype is \"$recdata\"\n";
>>> MailScanner::Log::WarnLog("Syntax error in Postfix queue file,
>>>didn't " .
>>> "start with a C record") unless $rectype
>>>eq 'C';
>>> $recdata =~ /^([0-9 ]{15}) ([0-9 ]{15}) ([0-9 ]{15})( ([0-9 ]
>>>{15}))?$/;
>>> print "recdata is now \"$recdata\"\n";
>>> ($MsgContSize, $DataOffset, $NumRecips) = ($1+0, $2+0, $3+0);
>
>
> Try changing that last line to
>
> ($MsgContSize, $DataOffset, $NumRecips) = ($1, $2, $3);
> $MsgContSize =~ /^\D+//;
> $DataOffset =~ /^\D+//;
> $NumRecips =~ /^\D+//;
> $MsgContSize = $MsgContSize + 0;
> $DataOffset = $DataOffset + 0;
> $NumRecips = $NumRecips + 0;
>
> and let me know what happens.
This:
[root at im MailScanner]# service MailScanner restart
Shutting down MailScanner daemons:
MailScanner: [FAILED]
incoming postfix: [ OK ]
outgoing postfix: [ OK ]
Starting MailScanner daemons:
incoming postfix: [ OK ]
outgoing postfix: [ OK ]
MailScanner: In Debugging mode, not forking...
Can't call method "DropFromBatch" on unblessed reference at
/usr/lib/MailScanner/MailScanner/Postfix.pm line 335.
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list