Postfix and MailScanner

Kevin Miller kevin.miller at juneau.org
Sat May 16 18:14:06 UTC 2015


Thanks.  I have my Bayes in /etc/MailScanner/bayes and changing the SETGID on that directory is on my punch list.


...Kevin
--
Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4500
Registered Linux User No: 307357 

> -----Original Message-----
> From: MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info] On
> Behalf Of Mark Sapiro
> Sent: Saturday, May 16, 2015 9:28 AM
> To: mailscanner at lists.mailscanner.info
> Subject: Re: Postfix and MailScanner
> 
> On 05/16/2015 09:57 AM, Kevin Miller wrote:
> >
> > On another note, what do the ownership and permissions look like on
> /var/spool/postfix.
> > By default they were root:root on my box and I had to change the owner
> to postfix:postfix...
> 
> # ll -d /var/spool/postfix
> drwxr-xr-x 22 postfix postfix 4096 May  4 18:50 /var/spool/postfix/
> 
> I don't remember changing them, but I could have.
> 
> The one I know I change is
> # ll -d /var/spool/MailScanner/spamassassin
> drwxrwsr-x 2 postfix postfix 4096 May 15 12:51
> /var/spool/MailScanner/spamassassin/
> 
> note the SETGID bit. This directory contains the bayes_* files and
> sometimes other spamassassin processes running as root will update those
> files and change ownership. Without SETGID on the directory, files like
> /var/spool/MailScanner/spamassassin/bayes_journal become root:root. With
> SETGID on the directory and 'bayes_file_mode 0770' in
> /etc/MailScanner/spam.assassin.prefs.conf, they remain group postfix and
> writable by MailScanner.
> 
> --
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
> 
> 
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/listinfo/mailscanner



More information about the MailScanner mailing list