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/

To do so, edit the sendmail configuration file:

# vi /etc/mail/

Search for the DS entry. For example:

Change it to:


Then save the configuration file, and refresh sendmail:

# refresh -s sendmail
0 (0)
Article Rating (No Votes)
Rate this article
There are no attachments for this article.
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 TCP connection status
Viewed 15417 times since Mon, Jul 29, 2019
Viewed 12761 times since Thu, Feb 21, 2019
Part 3, Tuning swap space settings AIX7
Viewed 8614 times since Wed, Jun 19, 2019
AIX Creating a Volume Group
Viewed 2185 times since Tue, Jul 17, 2018
AIX alt_disk_copy
Viewed 9275 times since Sun, Jun 30, 2019
Part 1, Network overview - Monitoring the hardware
Viewed 5047 times since Mon, Jun 4, 2018
How to Use the Linux lsof Command
Viewed 10737 times since Sun, Jun 30, 2019
Trouble Shooting AIX Networking
Viewed 2238 times since Tue, May 22, 2018
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 5911 times since Wed, May 30, 2018
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 8283 times since Wed, May 22, 2019