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
vfcpmap on VIO Server
Viewed 9694 times since Tue, Jun 4, 2019
Manually Editing /etc/filesystems Can Cause Issues
Viewed 5665 times since Tue, May 22, 2018
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 2283 times since Thu, Sep 20, 2018
Monitor logfiles and command output on AIX using multitail.
Viewed 2501 times since Thu, Feb 21, 2019
Troubleshooting Starts With Understanding Your Physical Disks’ Attributes
Viewed 4000 times since Sat, May 19, 2018
AIX - How to shutdown or reboot
Viewed 6204 times since Fri, Jun 8, 2018
Manages processor scheduler tunable parameters schedo AIX
Viewed 2679 times since Thu, Sep 20, 2018
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 3172 times since Fri, Apr 19, 2019
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 7533 times since Wed, May 30, 2018
Create jfs2 logical volume on AIX
Viewed 5137 times since Thu, Feb 21, 2019