Not able to send email via sendmail for particular domain.

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5.5

Issue

  • Not able to send email via sendmail for particular domain.
# echo test | mail -vvv -s test test@example.com

example.com: Name server timeout
test@example.com... Transient parse error -- message queued for future delivery
test@example.com... queued

Resolution

  • System was not able to resolve example.com.

Root Cause

  • System was not able to resolve example.com.

Diagnostic Steps

# ping example.com
ping: unknown host example.com

# nslookup example.com
;; Got SERVFAIL reply from 192.168.1.150, trying next server
Server:         192.168.1.150
Address:        192.168.1.150#53
** server can't find example.com: NXDOMAIN

# dig -t MX example.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> -t MX example.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 38990
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;example.com.                      IN      MX

;; Query time: 5729 msec
;; SERVER: 192.168.1.150#53(192.168.1.150)
;; WHEN: Tue May 29 01:34:18 2012
;; MSG SIZE  rcvd: 26

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.