I'm having an issue with getting SA 3.4.0 when run as spamassassin -D -r to report spam to SpamCop. The errors I'm seeing are:
warn: Use of uninitialized value $v in concatenation (.) or string at /usr/local/share/perl/5.18.2/Mail/SpamAssassin/Plugin/SpamCop.pm line 255. Line 255 of the SpamCop.pm is: # compose message my $message; while (my ($k, $v) = each %head) { $message .= "$k: $v\n"; <------Line 255 } $message .= "\n" . $body; warn: Use of uninitialized value $mx in substitution (s///) at /usr/local/share/perl/5.18.2/Mail/SpamAssassin/Plugin/SpamCop.pm line 263. # send message my $failure; my $mx = $head{To}; my $hello = Mail::SpamAssassin::Util::fq_hostname() || $from; $mx =~ s/.*\@//; <---------Line 263 $hello =~ s/.*\@//; In my v310.pre file I have: loadplugin Mail::SpamAssassin::Plugin::SpamCop /usr/local/share/perl/5.18.2/Mail/SpamAssassin/Plugin/SpamCop.pm I have set the SpamCop from and to addresses in the SpamCop.pm file: setting => 'cpoll...@example.com', setting => 'submit.exam...@spam.spamcop.net', Yes, I am registered at SpamCop. AFAICT I have all the necessary modules installed, Net::DNS; Net::SMTP and so forth. -- Chris 31.11°N 97.89°W (Elev. 1092 ft) 15:54:02 up 23:36, 4 users, load average: 0.43, 0.25, 0.33 Ubuntu 14.04 LTS, kernel 3.13.0-35-generic