How To
Summary
Sendmail on AIX can be used as a relay server to route mail from different clients. To make the relay configuration, sendmail has to be run as MTA (Mail Transfer Agent).
Steps
1. On the LPAR that is going to be used as a relay server, uncomment the following entry in /etc/mail/sendmail.cf and save.
# FR-o /etc/mail/relay-domains
2. Create the /etc/mail/relay-domains file if it doesn’t exist and add the domain of the LPAR from where mail will be sent to be routed through this LPAR as a relay server.
for ex:
aus.stglabs.ibm.com
3. Save and then refresh/restart sendmail to read configuration changes.
# refresh -s sendmail
If AIX 7.2 TL4 SP1 and above, to restart sendmail run:
# startsrc -s sendmail -a " -bd -q30m"
4. On the LPAR from where mail will be sent to be routed through the relay server, add the relay server name to /etc/mail/sendmail.cf for pre-AIX 7.2 TL4. However, if using AIX 7.2 TL4 SP1 and later, edit /etc/mail/submit.cf file:
DS<full name with the domain of the relay server or IP address>
5. Save. Stop the sendmail daemon if it is already running on this LPAR:
# stopsrc -s sendmail
# FR-o /etc/mail/relay-domains
2. Create the /etc/mail/relay-domains file if it doesn’t exist and add the domain of the LPAR from where mail will be sent to be routed through this LPAR as a relay server.
for ex:
aus.stglabs.ibm.com
3. Save and then refresh/restart sendmail to read configuration changes.
# refresh -s sendmail
If AIX 7.2 TL4 SP1 and above, to restart sendmail run:
# startsrc -s sendmail -a " -bd -q30m"
4. On the LPAR from where mail will be sent to be routed through the relay server, add the relay server name to /etc/mail/sendmail.cf for pre-AIX 7.2 TL4. However, if using AIX 7.2 TL4 SP1 and later, edit /etc/mail/submit.cf file:
DS<full name with the domain of the relay server or IP address>
5. Save. Stop the sendmail daemon if it is already running on this LPAR:
# stopsrc -s sendmail
Test:
# echo “test” | mail -s “testing relay from <hostname>” -vvv <recipient email ID>
# echo “test” | mail -s “testing relay from <hostname>” -vvv <recipient email ID>
Additional Information
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Author: Mayank Sonakiya
Operating System: AIX and VIOS
Hardware: Power
Feedback: aix_feedback@wwpdl.vnet.ibm.com, msonakiy@in.ibm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Author: Mayank Sonakiya
Operating System: AIX and VIOS
Hardware: Power
Feedback: aix_feedback@wwpdl.vnet.ibm.com, msonakiy@in.ibm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB61","label":"IBM Technology Lifecycle Services"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SGMV48","label":"IBM Support for Sendmail"},"ARM Category":[{"code":"a8m3p0000008uF0AAI","label":"Systems Management-\u003EConfiguration Management"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
16 August 2023
UID
ibm17023167