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: How do you send an attachment via mail
Viewed 3944 times since Mon, Jun 11, 2018
LVM: Extend an existing Volume Group by adding a new disk
Viewed 6578 times since Sat, Jun 2, 2018
Aix: How to assign a specific PVID
Viewed 9019 times since Fri, Feb 1, 2019
Unlock User ID in IBM AIX
Viewed 16836 times since Mon, May 28, 2018
Manages processor scheduler tunable parameters schedo AIX
Viewed 3433 times since Thu, Sep 20, 2018
How to mirror the rootvg in AIX?
Viewed 6164 times since Mon, May 21, 2018
Using Kerberos security with Server for NFS
Viewed 11215 times since Wed, Jun 27, 2018
AIX Reviewing AIX Error and Boot Logs
Viewed 4568 times since Wed, Mar 20, 2019
Configuration of AIX Fast Connect and SMBFS
Viewed 9812 times since Mon, Jun 18, 2018
Mount CD/DVD & ISO image in AIX 6.1
Viewed 5023 times since Tue, Jul 17, 2018