This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:sendmail [2021/05/11 23:38] manu |
aix:sendmail [2022/12/19 23:50] (current) manu |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Sendmail on AIX ===== | ===== Sendmail on AIX ===== | ||
+ | |||
+ | https://www.ibm.com/support/pages/configuring-masquerading-aix-sendmail-using-generics-table | ||
+ | |||
+ | https://www.ibm.com/support/pages/how-disable-recipient-domain-lookup-sendmail | ||
+ | |||
+ | |||
+ | 2 ways to deploy sendmail: | ||
+ | * using **submit.cf** file, for AIX 7.2TL4 and later | ||
+ | * using **sendmail.cf** | ||
+ | |||
+ | ===== submit.cf ===== | ||
+ | |||
+ | A workaround to prevent using submit file, is to crate a symbolic link between **/etc/mail/sendmail.cf** and **/etc/mail/submit.cf** (check section [[aix:sendmail#sendmail_configuration|sendmail.cf]]) | ||
+ | |||
+ | https://www.ibm.com/support/pages/how-run-two-sendmails-one-mtamail-transfer-agent-and-another-msamail-submission-agent | ||
+ | |||
+ | How to run two sendmails, one for MTA(Mail Transfer Agent) and another for MSA(Mail Submission Agent). | ||
+ | |||
+ | |||
+ | ===== sendmail.cf ===== | ||
+ | | ||
For more secure sendmail in AIX 7.2 TL4 | For more secure sendmail in AIX 7.2 TL4 | ||
https://www.ibm.com/support/knowledgecenter/ssw_aix_72/s_commands/sendmail.dita | https://www.ibm.com/support/knowledgecenter/ssw_aix_72/s_commands/sendmail.dita | ||
+ | |||
+ | https://www.ibm.com/support/pages/node/6378270?myns=aix&mynp=OCSG11S&mync=E&cm_sp=aix-_-OCSG11S-_-E | ||
<cli> | <cli> | ||
Line 78: | Line 101: | ||
* Listening on port 25/tcp for incoming messages from outside of the machine | * Listening on port 25/tcp for incoming messages from outside of the machine | ||
* Flushing the local queue of unsent messages on a periodic basis | * Flushing the local queue of unsent messages on a periodic basis | ||
+ | |||
+ | ===== aliases ===== | ||
+ | |||
+ | alias configuration for sendmail in MSP mode (applicable only beyond AIX version 7200-04-02). | ||
+ | |||
+ | To configure the aliasing in sendmail, which runs in mail submission program mode (MSP). | ||
+ | Mail aliasing in sendmail, which is being run in mail submission program mode. | ||
+ | |||
+ | Steps | ||
+ | |||
+ | To configure the alias while sending a mail with sendmail in Mail Submission Program mode. Mailer flag in /etc/mail/submit.cf file should be modified to add alias flag "A" as part of F attribute. | ||
+ | |||
+ | Sample change to mailer flag in "/etc/mail/submit.cf" : | ||
+ | |||
+ | Mlocal, F=lmDFMuXkw5 | ||
+ | to | ||
+ | Mlocal, F=lmDFMAuXkw5 | ||
+ | |||
+ | Alias flag "A" is added to mailer as part of F attribute as shown above. | ||
+ | |||
+ | When adding a new alias into /etc/mail/aliases | ||
+ | |||
+ | Ex: | ||
+ | TEST: user@machine | ||
+ | testalias: TEST | ||
+ | | ||
+ | The /etc/mail/aliases file is a raw data file. The sendmail command uses a database version of this file. You must build a new alias database by running the sendmail -bi command or the newaliases command before any changes made to the /etc/mail/aliases file become effective. | ||
+ | |||