On Thu, 2014-08-28 at 23:49 +0200, Karsten Bräckelmann wrote: > On Thu, 2014-08-28 at 16:14 -0500, Chris wrote: > > 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: > > Ignoring the Perl warnings for now. > > > In my v310.pre file I have: > > > > loadplugin Mail::SpamAssassin::Plugin::SpamCop > > /usr/local/share/perl/5.18.2/Mail/SpamAssassin/Plugin/SpamCop.pm > > It should never be necessary to provide the (optional) filename argument > with stock SA plugins. Even worse, absolute paths will eventually be > harmful. > Thanks Karsten, I'll remove the path statement
> > I have set the SpamCop from and to addresses in the SpamCop.pm file: > > The Perl modules are no user-serviceable parts. Do not edit them. > > Moreover, the SpamCop plugin provides the spamcop_(from|to)_address > options to set these in your configuration. See > > http://spamassassin.apache.org/doc/Mail_SpamAssassin_Plugin_SpamCop.html > > > setting => 'cpoll...@example.com', > > setting => 'submit.exam...@spam.spamcop.net', > > Wait... What exactly did you edit? > > The only instances of 'setting' in SpamCop.pm are the ones used to > register SA options. Did you replace the string spamcop_from_address > with your email address? This is what I edited: =item spamcop_from_address u...@example.com (default: none) This address is used during manual reports to SpamCop as the From: address. You can use your normal email address. If this is not set, a guess will be used as the From: address in SpamCop reports. =cut push (@cmds, { setting => 'cpoll...@example.com', default => 'cpoll...@example.com', =item spamcop_to_address u...@example.com (default: generic reporting address) Your customized SpamCop report submission address. You need to obtain this address by registering at C<http://www.spamcop.net/>. If this is not set, SpamCop reports will go to a generic reporting address for SpamAssassin users and your reports will probably have less weight in the SpamCop system. =cut push (@cmds, { setting => 'submit.exam...@spam.spamcop.net', I've replaced my registered submit address here with 'example'. > > I have a gut feeling the Perl warnings will disappear, if you revert any > modifications to the SpamCop.pm Perl module and set the options in your > configuration instead... > > Thanks Karsten, I'll give that a try again by setting in my local.cf file. -- Chris 31.11°N 97.89°W (Elev. 1092 ft) 16:54:39 up 1 day, 37 min, 4 users, load average: 0.32, 0.19, 0.22 Ubuntu 14.04 LTS, kernel 3.13.0-35-generic