2 # This file controls and allow (or disallow) access to the MTA.
3 # Check the /usr/share/doc/sendmail-{version}/README.cf file for a description
4 # of the format of this file. (search for access_db in that file)
5 # See also /usr/share/doc/sendmail-{version}/examples/.
9 # makemap hash access < access
11 # after modify of this file.
15 # email addr <user@[host.domain]>
16 # domain name unless FEATURE(relay_hosts_only) is used,
17 # then this is a fqdn - and relay-domains ($=R)
19 # network number must end on an octet boundary, or
20 # you're stuck going the longwinded way ;-{
21 # you also should rember about IPv6: prefix
22 # before IPv6 protocol adress.
23 # [network no.] by default, sendmail will refuse any mail
24 # from unresolvable domains. If you have problems
25 # with your resolver you can still accept mail
26 # from unresolvable domains marking their IP address
27 # with '[]' quotes. Other way is add
28 # FEATURE(`accept_unresolvable_domains')
29 # to your sendmail.mc and run
30 # m4 sendmail.mc > sendmail.cf
33 # OK accept mail even if other rules in the
34 # running ruleset would reject it.
35 # RELAY Allow domain to relay through your SMTP
36 # server. RELAY also serves an implicit
37 # OK for the other checks.
38 # REJECT reject the sender/recipient with a general
39 # purpose message that can be customized.
40 # confREJECT_MSG [550 Access denied] will be issued
41 # DISCARD discard the message completely using
42 # the $#discard mailer.
43 # ### any text where ### is an RFC 821 compliant error code
44 # and "any text" is a message to return for
46 # The string should be quoted to avoid surprises,
47 # e.g., sendmail may remove spaces otherwise.
48 # This type is deprecated, use one the two
49 # ERROR: entries below instead.
51 # as above, but useful to mark error messages as such.
52 # ERROR:D.S.N:### any text
53 # where D.S.N is an RFC 1893 compliant error code
54 # and the rest as above.
57 # spamhost.com ERROR:550 "We don't accept mail from spammers"
58 # okay.cyberspammer.com OK
61 # IPv6:1:2:3:4:5:6:7 RELAY
63 # [IPv6:1:2:3:4:5:6:7:8] OK
64 # spammer@aol.com REJECT
65 # FREE.STEALTH.MAILER@ 550 Spam not accepted
66 # spammer@aol.com REJECT
67 # cyberspammer.com REJECT
70 # IPv6:2002:c0a8:02c7 RELAY
71 # IPv6:2002:c0a8:51d2::23f4 REJECT
73 # By default we allow relaying from localhost...
75 localhost.localdomain RELAY