procmail
[Top] [All Lists]

Re: defSENDMAIL

2000-07-11 14:49:26
Martin_MOKREJ <mmokrejs(_at_)natur(_dot_)cuni(_dot_)cz> writes:
 in config.h there's `#define DEFsendmail' commented out, but there's
preset "/bin/mail" value. I was told by sysadmin /bin/mail doesn't work
well (no details), however /usr/lib/sendmail is a qmail which emulates
sendmail. What is the `#define DEFsendmail' supposed to do? To define
$SENDMAIL in procmail, i.e.   /usr/lib/sendmail -oem -ti   or whatever are
those flags?

The DEFsendmail #define sets the initial value for the SENDMAIL variable
in procmail rcfiles.  That variable, together with SENDMAILFLAGS, is
used when a recipe has a "!" action.  The SENDMAIL variable should be
the path to a program that accepts a message on stdin, and the names of
recipients on the command line.  If passed the "-t" flag, the specified
program should extract the recipient addresses from the message header
(/bin/mail fails to do this, and should therefore not be used if an
alternative exists).

The standard value for SENDMAILFLAGS, "-oi" tells sendmail that a line
containing just a period should _not_ be intrepreted as the end of the
message.  If the program selected for SENDMAIL doesn't do that by
default, then you don't need that particular flag.  Indeed, procmail's
autoconf script will #define DEFflagsendmail to the empty string if
DEFsendmail doesn't end in "/sendmail".


Philip Guenther

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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