]>
Commit | Line | Data |
---|---|---|
432b00c2 ŁJM |
1 | # |
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/. | |
6 | # | |
7 | # Don't forget to do | |
8 | # | |
9 | # makemap hash access < access | |
10 | # | |
11 | # after modify of this file. | |
12 | # | |
13 | # Format: | |
14 | # lhs: | |
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) | |
18 | # must also be fqdns. | |
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 | |
31 | # | |
32 | # rhs: | |
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 | |
45 | # the command | |
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. | |
50 | # ERROR:### any text | |
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. | |
55 | # | |
56 | # Examples: | |
57 | # spamhost.com ERROR:550 "We don't accept mail from spammers" | |
58 | # okay.cyberspammer.com OK | |
59 | # sendmail.org RELAY | |
60 | # 128.32 RELAY | |
61 | # IPv6:1:2:3:4:5:6:7 RELAY | |
62 | # [127.0.0.3] OK | |
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 | |
68 | # .de REJECT | |
69 | # 192.168.212 REJECT | |
70 | # IPv6:2002:c0a8:02c7 RELAY | |
71 | # IPv6:2002:c0a8:51d2::23f4 REJECT | |
72 | # | |
73 | # By default we allow relaying from localhost... | |
74 | # | |
75 | localhost.localdomain RELAY | |
76 | localhost RELAY | |
77 | 127.0.0.1 RELAY | |
78 | ||
79 |