T M D A |
|
|||||||||||||||||||||||||||||||||
|
TMDA Pre-ConfigurationYou may need to make some system-wide configuration changes to your MTA software depending on which one you are running (in order of ease):[ qmail | Postfix | Exim | Sendmail ] MTA Configuration (qmail)No changes need to be made to your qmail configuration in order to use TMDA.MTA Configuration (Postfix)
MTA Configuration (Exim)Edit your Exim run time configuration file as follows:MAIN CONFIGURATION
DIRECTORS CONFIGURATION
TRANSPORTS CONFIGURATION
MTA Configuration (Sendmail)TMDA receives much of its information about the envelope of an incoming message from environment variables (usually set by the MTA). Most importantly, SENDER (the full envelope sender address), RECIPIENT (the full envelope recipient address), and EXT or EXTENSION (the recipient address extension).The main difficulty with using TMDA under Sendmail, is that Sendmail does not provide such variables as the other three supported MTAs do. In fact, it does not provide any envelope information to commands run from a .forward file. In order to be reliable, TMDA needs these real sender and recipient values. It can't rely on what might be in the To: or From: headers. So in order to use TMDA, you need some way to obtain the necessary envelope information and set the above mentioned environment variables. It matters not how you do this, just as long as these variables are properly set by the time TMDA sees the message. TMDA expects these variables to be in the following format: That is, just the e-mail address or recipient address extension, with no trailing or leading whitespace, or any other extraneous characters.SENDER=sender@domain.dom RECIPIENT=recipient@domain.dom EXTENSION=foo If your Sendmail installation is using procmail as its local mailer, the necessary information is passed as a command line argument to procmail, typically introduced by the "-a" flag. Your .procmailrc will then be able to construct the environment variables from this argument. The necessary Sendmail configuration changes are covered below, and a sample .procmailrc is given in the next section.
|