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
Useful AIX commands
Viewed 11461 times since Sun, Jun 17, 2018
Installing a Interim Fix (APAR IV16587)
Viewed 3998 times since Tue, Jul 17, 2018
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 6281 times since Thu, Nov 29, 2018
Script to make mksysb backup from NIM to LPAR
Viewed 4519 times since Thu, Feb 21, 2019
The new VIOS performance advisor tool part util
Viewed 4389 times since Tue, Jun 4, 2019
Removing Failed or Missing Paths
Viewed 4750 times since Wed, May 30, 2018
How to Backup and Upgrade a Virtual I/O Server Part I
Viewed 6140 times since Wed, Jun 5, 2019
SNAP
Viewed 2897 times since Mon, Sep 17, 2018
Create volume groups on AIX - Normal Big Scalable
Viewed 8328 times since Thu, Feb 21, 2019
Getting list users and groups in AIX
Viewed 5448 times since Mon, May 28, 2018