Hi to all, I have just set up a new server with postfix and spamassassin. Spamassassin works fine but when I look at my mail.log I can see lots of errors. For every mail spamassassin scans, I get the message:
---------------------------------------------------------------------------------------------------------- Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 276) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 276) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" Jun 26 16:55:37 MY-SERVER spamd[29634]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 2669, <GEN10> line 60. Jun 26 16:55:37 MY-SERVER last message repeated 2 times Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 277) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 277) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" Jun 26 16:55:37 MY-SERVER spamd[29634]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 2669, <GEN10> line 60. Jun 26 16:55:37 MY-SERVER last message repeated 2 times Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 278) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 278) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" Jun 26 16:55:37 MY-SERVER spamd[29634]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 2669, <GEN10> line 60. Jun 26 16:55:37 MY-SERVER last message repeated 2 times Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 279) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 279) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" Jun 26 16:55:37 MY-SERVER spamd[29634]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 2669, <GEN10> line 60. Jun 26 16:55:37 MY-SERVER last message repeated 2 times Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 280) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 280) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" Jun 26 16:55:37 MY-SERVER spamd[29634]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 2669, <GEN10> line 60. Jun 26 16:55:37 MY-SERVER last message repeated 2 times Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 281) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 281) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" Jun 26 16:55:37 MY-SERVER spamd[29634]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 2669, <GEN10> line 60. Jun 26 16:55:37 MY-SERVER last message repeated 2 times Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 282) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 282) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" Jun 26 16:55:37 MY-SERVER spamd[29634]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/PerMsgStatus.pm line 2669, <GEN10> line 60. Jun 26 16:55:37 MY-SERVER last message repeated 2 times Jun 26 16:55:37 MY-SERVER spamd[29634]: Number found where operator expected at (eval 283) line 10, near "} Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1" Jun 26 16:55:37 MY-SERVER spamd[29634]: (Missing operator before Jun 26 16:55:37 MY-SERVER spamd[29634]: Jun 26 16:55:37 MY-SERVER spamd[29634]: 1?) Jun 26 16:55:37 MY-SERVER spamd[29634]: rules: failed to run header tests, skipping some: syntax error at (eval 283) line 11, near "; Jun 26 16:55:37 MY-SERVER spamd[29634]: }" ---------------------------------------------------------------------------------------------------------- This is filling up the whole log. I installed spamassassin on a debian-system with apt. Looks like there is a error in PerMsgStatus.pm. Here are the lines around row 2669: ---------------------------------------------------------------------------------------------------------- sub register_plugin_eval_glue { my ($self, $pluginobj, $function) = @_; my $evalstr = <<"ENDOFEVAL"; { package Mail::SpamAssassin::PerMsgStatus; sub $function { my (\$self) = shift; my \$plugin = \$self->{conf}->{eval_plugins}->{$function}; return \$plugin->$function (\$self, [EMAIL PROTECTED]); } 1; } ENDOFEVAL eval $evalstr; if ($@) { warn "rules: failed to run header tests, skipping some: [EMAIL PROTECTED]"; $self->{rule_errors}++; } } ---------------------------------------------------------------------------------------------------------- But I’m not familiar with PERL, so I can’t see where the error is.. This is Version 3.1.7-2 on a 64-bit Debian Etch System. Thx for your help! -- View this message in context: http://www.nabble.com/Error-in-PerMsgStatus.pm-tp18136989p18136989.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.