| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
mail.local with Various MTAs
This section explains how to invoke mail.local from
configuration files of various Mail Transport Agents.
All examples in this section suppose that mail.local
must receive following command line switches:
-s %h/.filter.scm -q /etc/mail/userquota |
Using mail.localwith SendmailUsing mail.localwith Exim
mail.local with Sendmail
The mail.local must be invoked from the local mailer
definition in the `sendmail.cf' file. It must have the
following flags set `lswS', meaning the mailer is local,
the quote characters should be stripped off the address before
invoking the mailer, the user must have a valid account on this
machine and the userid should not be reset before calling the
mailer. Additionally, `fn' flags may be specified to allow
mail.local to generate usual `From ' envelope
instead of the one supplied by sendmail.
If you wish to use mail.local with SQL authentication, you may
wish to remove the `w' flag, since in that case the user is
not required to have a valid account on the machine that runs
sendmail.
Here is an example of mailer definition in `sendmail.cf'
Mlocal, P=/usr/local/libexec/mail.local,
F=lsDFMAw5:/|@qSPfhn9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
T=DNS/RFC822/X-Unix,
A=mail $u
|
To define local mailer in `mc' source file, it will suffice to set:
define(`LOCAL_MAILER_PATH', `/usr/local/libexec/mail.local') define(`LOCAL_MAILER_ARGS', `mail $u') |
mail.local with Exim
Using mail.local with Exim is quite straightforward. The
following example illustrates the definition of appropriate transport
and director in `exim.conf':
# transport mail_local_pipe: driver = pipe command = /usr/local/libexec/mail.local $local_part return_path_add delivery_date_add envelope_to_add # director mail_local: driver = localuser transport = mail_local_pipe |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |