On 29 Nov 2018, at 8:06, Eggert Ehmke wrote:

Strange, I am missing that configuration in /etc/postfix/master.cf. Will add
them.

Please be careful. It is *possible* to have SpamAssassin hooked into the mail acceptance and delivery flow in many different ways, I only (vaguely) described the most common way that I've seen for doing so with the "spamd" daemon involved, which is indicated by your use of '--virtual-config-dir' and a log file named 'spamd.log.'

If your configuration was completely missing any relevant entry in master.cf, it could be that SA was being used via Dovecot or via an access map FILTER result. Make sure you understand how your plumbing works before changing it.


Am Donnerstag, 29. November 2018, 01:15:39 CET schrieb Bill Cole:
On 28 Nov 2018, at 17:53, Eggert Ehmke wrote:
Do you mean the --username option in /etc/default/spamassassin?

No. Postfix is running the 'spamc' program in some fashion, usually via a pipe transport configured in master.cf. That transport (typically an intermediary script) needs to be passed the recipient address by Postfix
and may need to transform it in some fashion (e.g. strip the domain
maybe) to use it as the argument to the '-u' option in an invocation of
spamc.

It is set to the generic user --username=debian-spamd


Thank you

Am Mittwoch, 28. November 2018, 22:41:38 CET schrieb RW:
On Tue, 27 Nov 2018 18:01:04 +0100

Eggert Ehmke wrote:
I have Spamassassin running on Debian with Postfix, Dovecot etc. It
seems to work, Spam is filtered to my Quarantine. I have some
virtual
mailboxes in /var/mail/vhosts and have set up the Option

-x --virtual-config-dir=/var/mail/vhosts/%d/%l/spamassassin
This does not work, in the log file /var/log/spamassassin/spamd.log

I find these lines:

warn: plugin: eval failed: bayes: (in learn) locker: safe_lock:
cannot create tmp lockfile /var/
mail/vhosts///spamassassin/bayes.lock.domain.de.3653
for /var/mail/vhosts///spa


So the user name and the domain are  not replaced in the pattern.
What may be wrong??

Are you sure the recipient address is being passed to spamc via the
-u
option?


--
Bill Cole

Reply via email to