[imp] Error reporting spam..

Simon B simon.buongiorno at gmail.com
Fri Jan 3 09:47:54 UTC 2014


On 31 December 2013 11:04, Simon B <simon.buongiorno at gmail.com> wrote:
> On 30 December 2013 21:06, Michael M Slusarz <slusarz at horde.org> wrote:
>> Quoting Simon B <simon.buongiorno at gmail.com>:
>>
>>> Hi
>>>
>>> I don't know how long this has been happening but investigating my
>>> logs has thrown up a couple of errors I think I should better
>>> understand.
>>>
>>> 2013-12-18T12:08:31+00:00 ERR: HORDE-PROD [imp] Error reporting spam:
>>> Dec 18 12:08:31.306 [9395] warn: archive-iterator: no access to
>>> dgm at example.net: No such file or directory at /usr/share/perl5/
>>> Mail/SpamAssassin/ArchiveIterator.pm line 771.
>>> Dec 18 12:08:31.316 [9395] warn: archive-iterator: unable to open
>>> dgm at example.net: No such file or directory
>>
>>
>> [snip]
>>
>>> My backends.local.php has:
>>>
>>>  28     'spam' => array(
>>>  29          'innocent' => array(
>>>  30              'display' => true,
>>>  31         //     'email' => null,
>>>  32              'email_format' => 'digest',
>>>  33              'program' => '/usr/bin/spamassassin -k %u'
>>
>>
>> And you are sure that this is the correct command-line?  From the error
>> message returned by the spamassassin binary, that doesn't appear to be the
>> case.
>
> I rather suspect you're right - but I copied this over from the old
> config.  I was rather hoping someone on here would tell me it was
> wrong ;)

Sorry, I didn't reply to the list.

So, I've done some reading and /usr/bin/spamassassin is ancient the
new command is /usr/bin/sa-learn

Updating backends.local.php to:

 'program' => '/usr/bin/sa-learn --spam --sync --username=amavis'

causes this error in the logs..

2014-01-03T09:19:15+00:00 ERR: HORDE-BETA [imp] Error reporting spam:
bayes: expire_old_tokens: locker: safe_lock: cannot create tmp
lockfile /var/www/.spamassassin/bayes.lock.mail.example.net.17845 for
/var/www/.spamassassin/bayes.lock: No such file or directory

Clearly it's a permissions issue - but which one?  I create the
directory /var/www/.spamassassin/ and make it readable by the www-data
user and the error disappears.

However, 1) the user in the command is clearly amavis, so I feel that
a) the bayes_toks should be located elsewhere and b) the idea is for
per-user sa training, so I can't see how having this called by the
apache user is correct.

Does anyone have Amavisd/Spamassassin set up with per-user training
who could guide me in the right direction?

Thanks.

Simon


More information about the imp mailing list