Archive

Archive for April, 2015

sendmail show “domain.com: Name server timeout”

April 9, 2015 Leave a comment

After I setup sendmail relay on the Red Hat Enterprise Linux Server 5.5 based on some online docuements, it always tells the following steps

1. Change /etc/mail/sendmail.mc entry “dnl define(`SMART_HOST’, `smtp.your.provider’)dnl” to “define(`SMART_HOST’, `[mailserver1][mailserver2]’)dnl”

2. Remake the /etc/mail/sendmail.cf by the command make

3. Restart the sendmail services

# service sendmail restart

But when I did sendmail testing, it showed error below. I searched on the internet, there are no any workable clue.

domain.com: Name server timeout

… Transient parse error — message queued for future delivery

… queued

Finally, I found that the procedure for setup sendmail relay above, it assums that DNS has been setup. Therefore, if there is no DNS, extra setup procedures are required.

1. Uncomment the entry below in /etc/mail/submit.mc

define(`confDIRECT_SUBMISSION_MODIFIERS’,`C’)dnl

2. Create /etc/mail/service.switch with the content below

####### start of file #########
hosts files
aliases files
####### end of file ###########

3. Restart sendmail

Categories: Uncategorized