postfix + mailscanner permission problem in active queue

Glenn Steen glenn.steen at gmail.com
Fri Sep 29 08:47:44 IST 2006


On 29/09/06, keith <keith at 12345678.org> wrote:
> Thank you for your kindly reply.
>
> I have follow your suggest and change the Mailscanner.conf
> ------
> # Set whether to use postfix, sendmail, exim or zmailer.
> # If you are using postfix, then see the "SpamAssassin User State Dir"
> # setting near the end of this file
> MTA = postfix
>
> #Run As User = mail
> #Run As User = postfix
> Run As User = postfix
>
> # Group to run as (not normally used for sendmail)
> #Run As Group = mail
> #Run As Group = postfix
> Run As Group = root
> -----------------
>
> I seen the problem is fixed, but the maillog have a new error message is this
> message below, I checked the /var/spool/postfix is own by postfix and
> "SpamAssassin User State Dir" is empty , why still prompt this message ?
>
> Thanks
>
> * New Error Log
> -------------------
> Sep 29 08:14:23 smtp-gatewayss MailScanner[19016]: User's home directory
> /var/spool/postfix is not writable
> Sep 29 08:14:23 smtp-gatewayss MailScanner[19016]: You need to set the
> "SpamAssassin User State Dir" to a directory that the "Run As User" can write to
> --------
It is exactly what it says on the tin... Did you really set
"SpamAssassin User State Dir" to a directory you can write to (without
spelling errors, and without spurious <CR> characters at the end
(assuming you use windoze to edit your MailScanner.conf:-))? Probably
not. Or else, the postfix user really can't write to the user state
dir... Perhaps it lacks permission to even _reach_ that directory?
Check that by doing
su - prostfix -s /bin/bash
$ cd /var/spool/MailScanner/spamassassin (or wherever you put it)
...
$ ls -l /var/spool/ (will likely reveal that postfix cannot access the
MailScanner directory;)
...

HtH
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list