Single email, multiple Spamassassin attempls

Richard Mealing richard at
Fri May 17 16:53:21 IST 2013


You need to change user to postfix, so - su postfix

For Ubuntu, I would normally 'su' to root first, then - su postfix


-----Original Message-----
From: mailscanner-bounces at [mailto:mailscanner-bounces at] On Behalf Of Robert Lopez
Sent: 17 May 2013 01:09
To: MailScanner discussion
Subject: Re: Single email, multiple Spamassassin attempls

On Thu, May 16, 2013 at 4:24 AM, Martin Hepworth <maxsec at> wrote:
> not normal, but it's telling you whats happening as it can't get a 
> proper scan out of the message. I'd check you're permissions and the 
> like are good to start with then run the problem message through a 
> debug session (loggied in as postfix user first so you get a proper 
> look at any permissions issues)

You lost me on "logged in as postfix" ...

# grep postfix /etc/passwd

The above is from the new RHEL gateway.

All our older Ubuntu gateways are ...
# grep postfix /etc/passwd

I never considered that

Run As User = postfix
Run As Group = postfix

actually required the postfix account to support being "logged into".

Do you mean sudo -u postfix MailScanner ...  ?

If I do "sudo -u postfix MailScanner --lint" both this new and the older gateways (which have been working for years) fail but fail differently (different versions of MailScanner as well).

How do I "run the problem message through a debug session"?
In the man pages and in the book I have failed to see how to do that.

Robert Lopez
MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 

More information about the MailScanner mailing list