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
Part 3, Tuning swap space settings AIX7
Viewed 8983 times since Wed, Jun 19, 2019
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 2148 times since Thu, Feb 21, 2019
Install and configure GNU watch (gwatch) on AIX
Viewed 7743 times since Thu, Feb 21, 2019
Working with Virtual media library on VIO servers
Viewed 15135 times since Thu, Feb 21, 2019
The new VIOS performance advisor tool part util
Viewed 3192 times since Tue, Jun 4, 2019
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 3794 times since Fri, Jun 8, 2018
Monitor logfiles and command output on AIX using multitail.
Viewed 2282 times since Thu, Feb 21, 2019
AIX Increase paging space logical volume size
Viewed 2872 times since Tue, Jul 17, 2018
A Change to the SMT Mode Default in POWER9
Viewed 5279 times since Fri, Jan 18, 2019
Part 1, Memory overview and tuning memory parameters AIX7
Viewed 4183 times since Wed, Jun 19, 2019