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: Script to get Total Disk Size
Viewed 2960 times since Tue, Jun 12, 2018
AIX: How to determine which application created the OS core file
Viewed 2065 times since Mon, Jun 11, 2018
Topics: PowerHA / HACMP, Storage Adding a new volume group to an active PowerHA resource group
Viewed 2196 times since Mon, Jun 3, 2019
AIX Errpt - Diag - Alog
Viewed 3106 times since Wed, Mar 20, 2019
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 5057 times since Sun, Jun 30, 2019
IBM AIX commands you should not leave home without
Viewed 6666 times since Mon, Jun 11, 2018
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 6812 times since Tue, Jun 4, 2019
AIX: Script to check if all paths are consistent and available
Viewed 2648 times since Tue, Jun 12, 2018
Problems with NFS on an AIX Reboot? Then Go Single
Viewed 5916 times since Wed, May 30, 2018
Viewed 10770 times since Wed, May 30, 2018