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
A tcpdump Tutorial and Primer with Examples
Viewed 5179 times since Sun, Jun 17, 2018
O’Reilly’s CD bookshelf
Viewed 12657 times since Wed, Jun 27, 2018
AIX Different Commands For Paging Space Administration swap file create
Viewed 7482 times since Thu, Aug 1, 2019
Script HW/SW AIX
Viewed 9173 times since Mon, Jun 4, 2018
AIX 6.1: Extend VG 0516-1714 extendvg 0516-1254 extendvg
Viewed 4545 times since Fri, Jul 6, 2018
AIX Assign a PVID to a new hdisk
Viewed 6613 times since Tue, Jul 17, 2018
AIX HA / HACMP, System Admin↑ Mountguard
Viewed 6954 times since Mon, Jun 3, 2019
How to setup an user in AIX
Viewed 3606 times since Mon, May 28, 2018
AIX Errpt - Diag - Alog
Viewed 3721 times since Wed, Mar 20, 2019
AIX How to Investigate a System Reboot
Viewed 6683 times since Tue, Aug 14, 2018