How to Configure Sendmail not to Look up MX records

A default sendmail configuration will do DNS queries for MX records. It does this even when its setup to use a Mail Relay Server for sending mail out. This will cause mail to fail if its not able to lookup the MX record, for example when the SMTP relay server is not known in DNS.

Setting up sendmail not to query DNS for MX records when using a DS (Smart Relay) consists of using "[ ]" brackets around the hostname (or IP address) Mail Relay Server configured in the /etc/mail/sendmail.cf.

To do so, edit the sendmail configuration file:

# vi /etc/mail/sendmail.cf

Search for the DS entry. For example:

DSsmtp.unixhealthcheck.com

Change it to:

DS[smtp.unixhealthcheck.com]

Then save the configuration file, and refresh sendmail:

# refresh -s sendmail
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Checking HBA status on AIX
Viewed 18117 times since Fri, Oct 5, 2018
AIX NFS Version 4 configuration over Kerberos inter-realm setup
Viewed 3934 times since Wed, Jun 27, 2018
Mount CD/DVD & ISO image in AIX 6.1
Viewed 3986 times since Tue, Jul 17, 2018
AIX: Remove existing disk
Viewed 2589 times since Sun, Jun 3, 2018
Do you Know These 5 Use of V$session View ?
Viewed 105041 times since Thu, Jun 21, 2018
bootlist multiple boot logical volume found
Viewed 2678 times since Tue, Apr 16, 2019
AIX: How to determine which application created the OS core file
Viewed 2434 times since Mon, Jun 11, 2018
AIX How to Investigate a System Reboot
Viewed 6521 times since Tue, Aug 14, 2018
Epoch & Unix Timestamp Conversion Tools
Viewed 61497 times since Fri, Jun 22, 2018
AIX: Script to create a file with commands to remove missing & failed paths
Viewed 3168 times since Tue, Jun 12, 2018