On 4/30/2015 9:56 AM, Birta Levente wrote:
Spamassassin called through amavisd as a content filter in postfix.

I just see, if I send an emtpy mail (just the subject is "test") through my server, fire the warning. The mail is sent as an authenticated user, in amavis I have special policy bank for authenticated users.
But the warnings I saw when mails coming from outside too.

OK, well that error means msgscore isn't defined in check_reputation and there is at least one call to that function without a message score such as this call with only 6 parameters (msgscore is #8)

my $msg_rep = $self->check_reputations($pms, 'MSG_ID', $msg_id, undef, $date, undef);

Overall, I checked and we use spamc/spamd and have never seen the scenario you are having.

My thoughts are to have you edit your TxRep.pm, restart amavisd and look at the logs for the next time it happens and give us the log out from the dbg and the errors.

Not sure how you turn on debugging with amavis so hoping someone on list can say how to turn on --debug=TxRep so we can log the TxRep log issues?

Can you add this block of code above line 1386 in the current TxRep.pm?

  {
#Bug 7164, trying to find out reason for these: _WARN: Use of uninitialized value $msgscore in addition (+) at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/TxRep.pm line 1415.
    no warnings;

dbg("TxRep: Parameters: self: $self storage: $storage pms: $pms, key: $key, id: $id, ip: $ip, signedby: $signedby, msgscore: $msgscore");
    dbg("TxRep: weight: $weight");
  }


Here's more detail about where it needs to be:

sub check_reputation {
###########################################################################
  my ($self, $storage, $pms, $key, $id, $ip, $signedby, $msgscore) = @_;

  my $delta  = 0;
my $weight = ($key eq 'MSG_ID')? 1 : eval('$pms->{main}->{conf}->{txrep_weight_'.lc($key).'}');

--> Block here

  if (defined $weight && $weight) {


regards,
KAM

Reply via email to