Ano-Tech Computers
Enter keyword:

Sendmail refuses to accept/relay for domains in sendmail.cw
Problem:
Sendmail refuses to accept messages for one or more domains it is supposed to handle mail for, saying it will not relay.
 
Solution:
For some weird reason, the authors of sendmail decided to control relaying somewhere else, probably because like most other features in sendmail, relay blocking was added as an afterthought. But enough ranting. Here's what you need to do:

Create a file "/etc/mail/relay-domains" with one entry per domain:
"mydomain.com RELAY"
"yourdomain.com RELAY"

Now use the makemap command to create a hash from that info:
"makemap hash access < access"

Intuitive huh? Finally, restart sendmail:
"service sendmail restart"


 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles