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
Remove disk from volumegroup in AIX
Viewed 6677 times since Tue, Apr 16, 2019
AIX: Configuring a network interface
Viewed 3275 times since Sat, Jun 2, 2018
Unlock User ID in IBM AIX
Viewed 15028 times since Mon, May 28, 2018
AIX HA / HACMP, System Admin↑ Mountguard
Viewed 6526 times since Mon, Jun 3, 2019
AIX: How to determine which application created the OS core file
Viewed 2397 times since Mon, Jun 11, 2018
AIX HOW TO CLONE A ROOTVG USING ALTERNATE DISK INSTALLATION ALTER_DISK_COPY
Viewed 16603 times since Sun, Jun 30, 2019
Part 3, Monitoring your network packets and tuning the network
Viewed 5918 times since Mon, Jun 4, 2018
Tunneling With SSH to Your Destination
Viewed 4128 times since Wed, May 30, 2018
IP configuration in AIX
Viewed 2662 times since Tue, Jul 17, 2018
Create bootable DVD iso image from a mksysb backup
Viewed 4421 times since Tue, Jul 17, 2018