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 Oracle tuning
Viewed 206648 times since Tue, Jul 2, 2019
LVM: Shrink & extend a filesystem/volume
Viewed 1977 times since Sun, Jun 3, 2018
Working with Virtual media library on VIO servers
Viewed 14019 times since Thu, Feb 21, 2019
How to upgrade TL and SP in AIX using alternate disk(alt_disk_copy)
Viewed 10702 times since Sun, Jun 30, 2019
vfcpmap on VIO Server
Viewed 9251 times since Tue, Jun 4, 2019
IBM AIX commands you should not leave home without
Viewed 6907 times since Mon, Jun 11, 2018
HOWTO: Copy a filesystem on AIX
Viewed 2267 times since Mon, May 28, 2018
10 AIX Commands to Add to Your Toolbox
Viewed 4136 times since Sat, May 19, 2018
AIX, Storage, System Admin Allocating shared storage to VIOS clients
Viewed 2086 times since Fri, Apr 19, 2019
Check connection (rsh or nimsh) between NIM server and LPAR
Viewed 9546 times since Thu, Feb 21, 2019