postfix + mailscanner permission problem in active queue
keith
keith at 12345678.org
Fri Sep 29 02:13:26 IST 2006
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
--------
On Thu, 28 Sep 2006 11:11:08 -0700, Scott Silva wrote
> keith spake the following on 9/28/2006 10:42 AM:
> > Hello, Sorry for my not good English first,
> > I have a problem in my office new setup mail gateway (mailscanner + Exchange),
> > my server is CentOS 4.4 (postfix 2.2-10 + MailScanner-4.56.6-1 + SpamAssassin
> > 3.1 + ClamAV) , the mailscanner can process the spam and virus check for all
> > incoming message, after the mail define is clean, the mail will put to the
> > postfix active queue "/var/spool/postfix/active" ready for postfix send to
> > next hop, but I have the problem is the postfix is not enough access right to
> > send out the message in the active queue, because each mail file in the active
> > queue, the permission is 0700 and ownership is root:root , the postfix is run
> > as a postfix user id, I ahve try to manually to change the mail file owner to
> > postfix or 0700 and reload the service, the postfix can success to send out
> > the file in the queue automatic, so how can I change to mailscanner file
> > create ownership to postfix or any idea to fix my problem.
> >
> > Thank you very much.
> >
> >
> > --
> >
> In mailscanner.conf, there is a section on which mta you are using,
> and what user to run as;
>
> # User to run as (not normally used for sendmail)
> # If you want to change the ownership or permissions of the quarantine or
> # temporary files created by MailScanner, please see the "Incoming Work"
> # settings later in this file.
> #Run As User = mail
> #Run As User = postfix
> Run As User =
>
> # Group to run as (not normally used for sendmail)
> #Run As Group = mail
> #Run As Group = postfix
> Run As Group =
>
> --
>
> MailScanner is like deodorant...
> You hope everybody uses it, and
> you notice quickly if they don't!!!!
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
--
More information about the MailScanner
mailing list