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, Security, System Admin↑ Generating random passwords
Viewed 2772 times since Fri, Apr 19, 2019
How to determine why your AIX oslevel is downlevel (and a script to help!)
Viewed 3679 times since Fri, Jul 13, 2018
AIX Different Commands For Paging Space Administration swap file create
Viewed 7127 times since Thu, Aug 1, 2019
Create bootable DVD iso image from a mksysb backup
Viewed 4106 times since Tue, Jul 17, 2018
IP configuration in AIX
Viewed 2473 times since Tue, Jul 17, 2018
AIX snap - Prevent dump collection
Viewed 12110 times since Mon, Sep 17, 2018
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 2744 times since Fri, Apr 19, 2019
AIX: Configuring a network interface
Viewed 2941 times since Sat, Jun 2, 2018
Useful AIX general commands
Viewed 11499 times since Wed, Apr 17, 2019
Finding password rules in AIX
Viewed 2436 times since Mon, May 28, 2018