MS 5.3.1-3 not starting

Mark Sapiro mark at msapiro.net
Wed Apr 22 23:47:45 UTC 2020


On 4/22/20 11:52 AM, Adrian van Bloois wrote:
> Hi,
> When I start Mailscanner 5.3.1-3 I get the following error:
> MailScanner starting ... 
> syntax error at /usr/share/MailScanner/perl/MailScanner/Message.pm line 760, near "elsif"
> Global symbol "$message" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 761.
> Global symbol "$isauthenticated" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 763.
> syntax error at /usr/share/MailScanner/perl/MailScanner/Message.pm line 764, near "}"
> Global symbol "$iswhitelisted" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 767.
> Global symbol "$isauthenticated" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 767.
> Global symbol "$rblcounter" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 770.
> Global symbol "$rblspamheader" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 770.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 770.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 771.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 772.
> Global symbol "$RBLsaysspam" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 775.
> Global symbol "$rblcounter" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 775.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 778.
> Global symbol "$RBLsaysspam" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 778.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 779.
> Global symbol "$RBLsaysspam" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 779.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 780.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 781.
> Global symbol "$rblspamheader" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 781.
> Global symbol "$RBLsaysspam" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 781.
> Global symbol "$this" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 782.
> Global symbol "$rblcounter" requires explicit package name at /usr/share/MailScanner/perl/MailScanner/Message.pm line 782.
> syntax error at /usr/share/MailScanner/perl/MailScanner/Message.pm line 783, near "}"
> /usr/share/MailScanner/perl/MailScanner/Message.pm has too many errors.
> Compilation failed in require at /usr/sbin/MailScanner line 105.
> BEGIN failed--compilation aborted at /usr/sbin/MailScanner line 105.


This kind of error is often due to missing or extra braces { or }.


> I replaced Message.pm by that of 5.3.1-1 and that works allright.


There is clearly something wrong with your 5.3.1-3 Message.pm, but mine
is OK so yours got garbled somehow in the installation process.


> Am I doing something wrong?


You might try downloading the 5.3.1-3 version from
<https://raw.githubusercontent.com/MailScanner/v5/master/common/usr/share/MailScanner/perl/MailScanner/Message.pm>
and comparing it to yours.


-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the MailScanner mailing list