ZMailer and MailScanner--a little problem (+one little suggestion :P).

Julian Field mailscanner at ecs.soton.ac.uk
Fri Jun 6 16:21:44 IST 2003


How about I split the CheckQueuesAreTogether code so that it is separate 
for each MTA. Then we can do whatever combination we like, while still 
being easy to maintain.

At 16:20 06/06/2003, you wrote:
>Nice...
>
>I guess you modified the end of the CheckQueuesAreTogether() function in
>bin/MailScanner so it doesn't die 'cause you're daemon and the incoming
>router directory is owned by root.
>
>Maybe we could elegantly modify this to check for same ownership, or else, so
>that we have read&write permission on this directory before dying (so that we
>don't break current behavior).
>
>Julian, what do you think about it? As you can see from the sample below, the
>queue directories in ZMailer are world writable (but sticky), and thus you
>don't need that the owner of that directory is the same as you...
>
>El 6 Jun 2003 a las 17:02, Artur Meski escribió:
>
> >       Mariano Absatz <mailscanner at LISTS.COM.AR> writes:
> >
> > > I never run zmailer as non-root... is that possible? I guess that if 
> it is
> > > so, using the same user for zmailer and MailScanner should be 
> possible (in
> > > fact, I guess it should be necessary). You should check permissions on
> > > MailScanner temporary directories, but that should be it.
> >
> > Look:
> >
> > Processes:
> > [...]
> > daemon 33516  0,0  4,6 24524 24008  ??  SJ   16:17     0:02,25 
> /usr/bin/perl -I/usr/local/lib/MailScanner /usr/local/libexec/MailSca
> > daemon 33517  0,0  4,6 24608 24104  ??  SJ   16:17     0:02,57 
> /usr/bin/perl -I/usr/local/lib/MailScanner /usr/local/libexec/MailSca
> > daemon 33518  0,0  4,6 24604 24100  ??  SJ   16:18     0:02,96 
> /usr/bin/perl -I/usr/local/lib/MailScanner /usr/local/libexec/MailSca
> > [...]
> >
> > Permissions:
> > drwxr-xr-x   5 daemon  wheel  512  5 Cze 23:46 /var/spool/MailScanner/
> > drwxrwsrwt   2 root    wheel  512  6 Cze 16:46 
> /var/spool/postoffice-incoming/router/
> > drwxrwsrwt  28 root    wheel  512  6 Cze 16:46 
> /var/spool/postoffice/router/
> >
> > MailScanner.conf:
> > Run As User = daemon
> >
> >
> > I also had to change MailScanner's source code, because it was
> > checking the owner of that directories.
> >
> > Maybe it's a good sollution?  Maybe it's an useful information for
> > MS+ZM users (for throng of them ;P) and it's worth putting into the
> > documentation?
> >
> > Artur.
> >
> > --
> > // WWW: artur.black.pl // PGP: finger apm at heze.cifrid.net //
>
>
>--
>Mariano Absatz
>El Baby
>----------------------------------------------------------
>C makes it easy to shoot yourself in the foot. C++ makes it
>harder, but when you do, it blows away your whole leg."
>                              -- Bjarne Stroustrup

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




More information about the MailScanner mailing list