Skrevet av Emne: Sendmail refuses to accept/relay for domains in sendmail.cw  (Lest 4280 ganger)

ATC

  • Gjest
Sendmail refuses to accept/relay for domains in sendmail.cw
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • Sendmail refuses to accept messages for one or more domains it is supposed to handle mail for, saying it will not relay.



    ATC

    • Gjest
    [Solved] Sendmail refuses to accept/relay for domains in sendmail.cw
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • 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"