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
AIX QHA
Viewed 11230 times since Mon, Jun 3, 2019
Manually Editing /etc/filesystems Can Cause Issues
Viewed 5642 times since Tue, May 22, 2018
AIX, Monitoring, Networking, Red Hat, Security, System Admin↑ Determining type of system remotely
Viewed 2457 times since Fri, Apr 19, 2019
How to determine why your AIX oslevel is downlevel (and a script to help!)
Viewed 4419 times since Fri, Jul 13, 2018
SNAP
Viewed 2130 times since Mon, Sep 17, 2018
Rootvg Mirroring in AIX
Viewed 2887 times since Mon, May 21, 2018
Using Kerberos security with Server for NFS
Viewed 9821 times since Wed, Jun 27, 2018
AIX Commands Related to Boot and Init Process
Viewed 4806 times since Tue, Apr 16, 2019
Online Backups and Recovery in a Snap AIX
Viewed 5292 times since Wed, May 30, 2018
AIX disk queue depth tuning for performance
Viewed 15726 times since Thu, Jan 16, 2020