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
Problem on resizing volume group on AIX 0516-1714, 0516-792, 0516-787, and 0516-404
Viewed 2926 times since Fri, Jul 6, 2018
AIX - How to shutdown or reboot
Viewed 6475 times since Fri, Jun 8, 2018
Useful AIX commands
Viewed 9915 times since Sun, Jun 17, 2018
Install and configure GNU’s screen on AIX
Viewed 9301 times since Thu, Feb 21, 2019
AIX Different Commands For Paging Space Administration swap file create
Viewed 7682 times since Thu, Aug 1, 2019
Got Duplicate PVIDs in Your User VG? Try Recreatevg!
Viewed 3852 times since Fri, Feb 1, 2019
How to Maintain a Virtual I/O Server With FBO Part II
Viewed 10760 times since Wed, Jun 5, 2019
Part 2, Detailed diagnosis and troubleshooting
Viewed 2978 times since Tue, May 22, 2018
SSH Essentials: Working with SSH Servers, Clients, and Keys
Viewed 4643 times since Wed, Jun 27, 2018
Script to make mksysb backup from NIM to LPAR
Viewed 3818 times since Thu, Feb 21, 2019