Problem
I have switched my email server from a UUCP connection to the
world to an SMTP connection through an ISP. Now, when I send
mail to some domains, I get an error "no data known" and the mail
is returned to sender.The error will look something like:----- The following addresses had permanent fatal errors ----- craigd@sco.com
----- Transcript of session follows ----- 550 craigd@sco.com... Host unknown (Name server: sco.com.: no data known)
Running sendmail in verbose mode (see example, below) gives the following error:
# ./sendmail -v craigd@sco.com
test message
.
craigd@sco.com... Connecting to sco.com. via smtp...
craigd@sco.com... Host unknown (Name server: sco.com.: no data known)
/dead.letter... cannot open: Permission denied
root... Connecting to local...
root... Sent
# Cause
The server may not be configured to use DNS properly. Many sites
using UUCP as their mail transport have sendmail configured to do
no DNS lookups of the destination address, and instead just forward
the mail to their Internet gateway machine. Solution
The file /etc/service.switch may be present, telling sendmail to
ignore DNS lookups. Simply rename or move the service.switch file
and DNS will be used normally.Also, you may need to update your /etc/resolv.conf file so that your DNS queries are directed at the proper server.
See also
sendmail, Costales and Allman, O'Reilly and Associates. Also,
see the sendmail(ADMN) and resolver(SFF) manual pages.