relay-domains vs. access database RELAY

It is possible to specify domains and IP addresses to relay in either the relay-domains file or the access database. Of the two, I recommend using relay-domains.

If a domain is specified as a key in the access database with a value of "relay," sendmail will also relay any subdomains of this domain, even if they are unresolvable.

access database example:

# /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> check_mail <user@non_existent_subdomain@example.com>
...
check_mail       returns: $# RELAY

relay-domains example:

# /usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> check_mail <user@non_existent_subdomain@example.com>
check_mail       returns: $# error $@ 5 . 1 . 8 $: "553 Domain of sender address " " does not exist"

Here is my comp.mail.sendmail post regarding the problem.

Back to brandonhutchinson.com.
Last modified: 02/14/2006