MailScanner & Postfix

Dhawal Doshy dhawal at netmagicsolutions.com
Wed Oct 18 15:07:50 IST 2006


Gerhard Mourani wrote:
> Hi,
> 
> Thanks for your reply, I've see that the spamassassin binary was in mode
> 511 and changed this to mode 555. After that Mailscanner seem to work and
> generated the output message you've see below.

You can also use the in-built 'MailScanner --lint or --debug-sa' to 
check if everything is normal.

> Another question (maybe you can help). Does the postfix user need to have
> a shell access to the system for Mailscanner to work?

Umm no.. never, a '/sbin/nologin' is just fine.

- dhawal

PS: are you the same 'Gerhard Mourani' as the one who wrote 'securing 
and optimizing linux'?

>> On 17 Oct 2006, at 23:59, Gerhard Mourani wrote:
>>
>>> Here is my output of the /usr/bin/spamassassin --lint -D command
>>> run as
>>> user postfix, maybe you can see something that is not correctely set.
>>>
>>> bash-3.1$ /usr/bin/spamassassin --lint -D
>>>
>>> [13265] dbg: bayes: tie-ing to DB file R/O
>>> /var/spool/MailScanner/spamassassin/bayes_seen
>>> [13265] dbg: bayes: found bayes db version 3
>>> [13265] dbg: bayes: DB journal sync: last sync: 0
>>> [13265] dbg: bayes: not available for scanning, only 190 spam(s) in
>>> bayes
>>> DB < 200
>> There you go then. Another 10 Spam messages learnt and bayes will
>> start kicking in. I suspect that your previous SA set up used a
>> different user so you could always copy over it's bayes database
>> (Don't forget files permissions) so you are running quicker or just
>> teach it 10 more Spam messages using sa-learn.
>>
>> Drew


More information about the MailScanner mailing list