sendmail changing messages after MailScanner finishes...

Julian Field mailscanner at ecs.soton.ac.uk
Fri Mar 7 14:58:39 GMT 2003


Are the files in /var/spool/mqueue set to rw-rw----? If not, then what?
MailScanner doesn't change the permissions on clean messages, it just moves
them.
If I have to change the permissions as well, that's yet another system call
and another disk write for each message, which I would like to avoid if I can.

Are *all* the files in /var/spool/mqueue 666? Or are ones that were
infected 600?
What are the permissions on all the files in /var/spool/mqueue.in?
As you see from below, MailScanner sets its own umask to give 600 files,
specifically to stop problems like this.

At 13:55 07/03/2003, you wrote:
>Here's the info, Julian.  Thanks for taking a look.  I think I will have time
>to finally upgrade MailScanner this afternoon, so maybe this will be moot by
>then...
>
>[root at frobozz mqueue]# umask
>022
>[root at frobozz mqueue]# grep umask /opt/mailscanner/bin/mailscanner
>umask 0077; # Set nice and safe to no-one else can access anything!
>[root at frobozz mqueue]# ls -ald /var/spool/mqueue /var/spool/mqueue.in
>drwx------    2 root     root         8192 Mar  7 08:47 /var/spool/mqueue/
>drwxrwxr-x    2 root     mail         8192 Mar  7 08:45 /var/spool/mqueue.in/
>[root at frobozz mqueue]# uname -a
>Linux frobozz.dcg.com 2.2.17-21mdk #1 Thu Oct 5 13:16:08 CEST 2000 i686
>unknown
>
>  - John...
>
>Julian Field wrote:
> > Can you do
> >          umask
> >          grep umask /usr/sbin/MailScanner
> >          ls -ald /var/spool/mqueue /var/spool/mqueue.in
> >          uname -a
> > and tell me what it says. I can't reproduce the behaviour you are seeing.

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list