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 lspath Missing path
Viewed 11446 times since Fri, Oct 5, 2018
AIX, Installation, NIM↑ Creating an LPP source and SPOT in NIM
Viewed 16340 times since Fri, Apr 19, 2019
AIX Booting
Viewed 11858 times since Tue, Apr 16, 2019
Install and configure GNU watch (gwatch) on AIX
Viewed 8761 times since Thu, Feb 21, 2019
AIX, Security, System Admin↑ Clearing password history
Viewed 3506 times since Fri, Apr 19, 2019
AIX: How to identify the program listening in the given port
Viewed 3226 times since Mon, Jun 11, 2018
Undocumented AIX command lquerypv
Viewed 4713 times since Mon, Jul 16, 2018
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 16363 times since Fri, Jan 18, 2019
Restoring mksysb
Viewed 4563 times since Wed, May 30, 2018
Part 1, Network overview - Monitoring the hardware
Viewed 6086 times since Mon, Jun 4, 2018