procmail
[Top] [All Lists]

Re: Running as user...??

1999-10-11 09:02:32
Martin Mokrejs <mmokrejs(_at_)natur(_dot_)cuni(_dot_)cz> writes:
On Sun, 10 Oct 1999, Philip Guenther wrote:

Be careful: there are right ways and wrong ways to fix this.  Changing the
DefaultUser option in sendmail is the Wrong Way (and possibily dangerous,
depending on what you change it to).  Adding the 'S' flag to the local
mailer is the Right Way.

So you mean to comment out the DefaultUser option and have in sendmail.cf:

Leave the DefaultUser option alone (that is, uncommented).  It does not
affect any mailer which has the 'S' flag set.


# I think this commented out definition didn't work
#Mlocal,                P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10
/30, R=20/40,

# this works for sure
Mlocal,         P=/usr/local/bin/procmail, F=SAw5:|/@glDFMPhsfn, S=10/30, 
R=20/40,

If you order the flags the same, you'll see that the only differance
between those two definitions are that the former has the 'q' and '9'
flags and the latter has the 'g' flag.  The local mailer _should_ have
the 'q' flag (VRFY returns 250 for addresses that resolve to this mailer)
while the 'g' flag is irrelevant for non-smtp mailers.  So, if you were
having a problem with the former mailer definition, it was the '9' flag
(perform 7bit->8bit MIME conversions).  It should be safe to leave it off,
but do correct the 'q' and 'g' flags.

Otherwise, the mailer definition looks correct: it has the 'S' flag and
does not have the U= directive.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>