No empty .Rs/.Re
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / smtpd / smtpd_acl.in
blob45d1d4fa5f0833a0802100d5c38304fc38a8a304
2 # Initialize
4 smtpd_delay_reject 0
5 mynetworks 127.0.0.0/8,168.100.189.0/28
6 relay_domains porcupine.org
7 smtpd_null_access_lookup_key <> 
9 # Test check_domain_access()
11 helo_restrictions hash:./smtpd_check_access
12 # Expect: REJECT
13 helo foo.dunno.com
14 # Expect: OK
15 helo bar.dunno.com
16 # Expect: OK
17 helo foo.duuno.com
19 # Test check_namadr_access(), domain part
21 client_restrictions hash:./smtpd_check_access
22 # Expect: REJECT
23 client foo.dunno.com 131.155.210.17
24 # Expect: OK
25 client bar.dunno.com 131.155.210.17
26 # Expect: OK
27 client bar.dunno.com 131.155.210.19
29 # Test check_namadr_access(), address part
31 # Expect: OK
32 client bar.duno.com 131.155.210.17
33 # Expect: REJECT
34 client bar.duno.com 131.155.210.19
35 # Expect: REJECT
36 client bar.duno.com 44.33.22.11
37 # Expect: OK
38 client bar.duno.com 44.33.22.55
39 # Expect: REJECT
40 client bar.duno.com 44.33.44.33
42 # Test check_mail_access()
44 sender_restrictions hash:./smtpd_check_access
45 # Expect: REJECT
46 mail reject@dunno.domain
47 # Expect: OK
48 mail ok@dunno.domain
49 # Expect: OK
50 mail anyone@dunno.domain
51 # Expect: OK
52 mail bad-sender@dunno.domain
54 # Again, with a domain that rejects by default
56 # Expect: REJECT  
57 mail reject@reject.domain
58 # Expect: OK
59 mail ok@reject.domain
60 # Expect: REJECT
61 mail anyone@reject.domain
62 # Expect: REJECT
63 mail good-sender@reject.domain
65 # Again, with a domain that accepts by default
67 # Expect: REJECT
68 mail reject@ok.domain
69 # Expect: OK
70 mail ok@ok.domain
71 # Expect: OK
72 mail anyone@ok.domain
73 # Expect: OK
74 mail bad-sender@ok.domain
76 # Test check_mail_access()
78 recipient_restrictions hash:./smtpd_check_access
79 # Expect: REJECT
80 rcpt reject@dunno.domain
81 # Expect: REJECT
82 recipient_delimiter +
83 rcpt reject+ext@dunno.domain
84 recipient_delimiter |
85 # Expect: OK
86 rcpt ok@dunno.domain
87 # Expect: OK
88 recipient_delimiter +
89 rcpt ok+ext@dunno.domain
90 recipient_delimiter |
91 # Expect: OK
92 rcpt anyone@dunno.domain
93 # Expect: OK
94 rcpt bad-sender@dunno.domain
96 # Again, with a domain that rejects by default
98 # Expect: REJECT  
99 rcpt reject@reject.domain
100 # Expect: OK
101 rcpt ok@reject.domain
102 # Expect: REJECT
103 rcpt anyone@reject.domain
104 # Expect: REJECT
105 rcpt good-sender@reject.domain
107 # Again, with a domain that accepts by default
109 # Expect: REJECT
110 rcpt reject@ok.domain
111 # Expect: OK
112 rcpt ok@ok.domain
113 # Expect: OK
114 rcpt anyone@ok.domain
115 # Expect: OK
116 rcpt bad-sender@ok.domain
118 # check_sender_access specific
120 mail <>