a.peacock at chime.ucl.ac.uk
Fri Apr 13 09:07:33 IST 2007
> On Fri, 2007-04-13 at 08:40, Anthony Peacock wrote:
>> Seamus Allan wrote:
>>> Hi guys, been lurking for the last while, and now I have a question.
>>> We are running MailScanner with Postfix and all the jazz quite successfully
>>> for over a year now. After a while I have noticed that some very spammy
>>> messages are getting through with quite low spam scores. Intrigued, I placed
>>> some of these messages where I could get to them, and ran (as root)
>>> spamassassin -t < messagefile, and I get a good score (well over the
>>> threshold). So then I sudo'd the spamassassin command as the postfix user,
>>> and I got the low score - bingo.
>>> However, I am not sure which config is user dependent, and where to shift it
>>> to such that it gets used by spamassassin when run by the postfix user.
>>> It's probably a pretty simple solution, but I just can't find it.
>> Can you supply us with the list of SpamAssassin rules that are hit for
>> each user?
>> My initial guess is that you have been training the Bayes database as
>> root, which creates a database that only root uses. But without seeing
>> the scores that is purely a guess.
> Or another possibility is that the config points to a specific bayes
> database but the permissions are set so that only root can read it. When
> Mailscanner runs spamassassin as postfix it cannot read the database.
> Personally I use a mysql database as the backend for the bayes database.
> I run mailwatch aswell so need a database for it and moving bayes over
> to use a database is very little extra work and had the benefit that it
> makes it easier to add additional mailscanner boxes in the future.
So do I. It makes life a lot easier in the long run.
CHIME, Royal Free & University College Medical School
"If you have an apple and I have an apple and we exchange apples
then you and I will still each have one apple. But if you have an
idea and I have an idea and we exchange these ideas, then each of us
will have two ideas." -- George Bernard Shaw
More information about the MailScanner