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, Networking↑ Adding and deleting a static network route using the command line
Viewed 2864 times since Fri, Apr 19, 2019
AIX - How to shutdown or reboot
Viewed 6220 times since Fri, Jun 8, 2018
Install and configure yum on AIX
Viewed 4788 times since Thu, Feb 21, 2019
AIX check the HBA status
Viewed 16901 times since Tue, May 22, 2018
AIX, System Admin Configuring dsh DSH
Viewed 4190 times since Fri, Apr 19, 2019
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 2287 times since Thu, Sep 20, 2018
Configuring an AIX client with multiple Kerberos realms
Viewed 9242 times since Mon, Jun 25, 2018
AIX oslevel version OS
Viewed 5097 times since Wed, Apr 17, 2019
How to install filesets/software in aix?
Viewed 6207 times since Mon, Jul 8, 2019
Install and configure GNU’s screen on AIX
Viewed 9216 times since Thu, Feb 21, 2019