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:
Search for the DS entry. For example:# vi /etc/mail/sendmail.cf
Change it to:DSsmtp.unixhealthcheck.com
Then save the configuration file, and refresh sendmail:DS[smtp.unixhealthcheck.com]
# refresh -s sendmail
If you found this useful, here's more on the same topic(s) in our blog:
- Converting HEX to DEC
- How to update the AIX-rpm virtual package
- NFS mounts on HACMP failing
- clstat: Failed retrieving cluster information
- Creating a large file
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?




