|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
Historically Anubis was designed to process outgoing mail. Support for processing incoming mail was added in version 4.1.
To process incoming mail, Anubis must be started as mail
delivery agent from your MTA configuration file. The invocation
line must contain ‘--mode=mda’ option, that tells Anubis
to act in mail delivery mode. In this mode, Anubis receives
the message from standard input, processes it using configuration
file sections named
finally calls local mailer to actually deliver the modified message.
The local mailer must be given using ‘--local-mta’ option.
Let's summarize the special features of mail delivery mode :
The local mailer invocation line may contain meta-variables
%recipient, which will be replaced by
the actual sender and recipient email addresses before starting
%sendermeta variable above). It implies ‘--mode=mda’. If the option is not given, GNU Anubis will deduce sender address from UNIX ‘From ’ header or, if it is not present, from the value of
Following discussion explains how to configure Anubis in MDA mode with different mail transport agents.
If you use
mc file to generate ‘sendmail.cf’, use
LOCAL_MAILER_ARGS as shown
in the following example:
define(`LOCAL_MAILER_PATH', `/usr/local/sbin/anubis') define(`LOCAL_MAILER_ARGS', `mail --mode=mda -l '/libexec/mail.local -f %sender %recipient')
If you prefer to directly edit ‘sendmail.cf’, use
macro to declare Anubis as a local mailer. Following example
Mlocal, P=/usr/local/sbin/anubis, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=mail --mode=mda -l '/libexec/mail.local -f %sender %recipient' $u
exim, you will need to declare appropriate transport
and director in ‘exim.conf’:
# transport mail_local_pipe: driver = pipe command = /usr/local/sbin/anubis --mode=mda \ -l '/libexec/mail.local -f %sender %recipient' $local_part return_path_add delivery_date_add envelope_to_add # director mail_local: driver = localuser transport = mail_local_pipe
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]|
This document was generated by Sergey Poznyakoff on December, 20 2008 using texi2html 1.78.