summaryrefslogtreecommitdiffstats
path: root/src/smtpd/smtpd_server.in
blob: f002fc16cad82aea2b8c0e4926a7c003311ca5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Initialize.
#
#! ../bin/postmap smtpd_check_access
#msg_verbose 1
smtpd_delay_reject 0
relay_domains porcupine.org
client spike.porcupine.org 168.100.3.2
#
# Check MX access
#
helo_restrictions check_helo_mx_access,inline:{168.100.3.2=reject}
helo www.porcupine.org
helo example.tld
helo foo@postfix.org
sender_restrictions check_sender_mx_access,inline:{168.100.3.2=reject}
mail foo@www.porcupine.org
mail example.tld
mail foo@postfix.org
recipient_restrictions check_recipient_mx_access,inline:{168.100.3.2=reject}
rcpt foo@www.porcupine.org
rcpt foo@example.tld
rcpt foo@postfix.org
#
# Check NS access
#
helo_restrictions check_helo_ns_access,inline:{168.100.3.75=reject}
helo www.porcupine.org
helo example.tld
helo foo@maildaemon.org
sender_restrictions check_sender_ns_access,inline:{168.100.3.75=reject}
mail foo@www.porcupine.org
mail example.tld
mail foo@maildaemon.org
recipient_restrictions check_recipient_ns_access,inline:{168.100.3.75=reject}
rcpt foo@www.porcupine.org
rcpt foo@example.tld
rcpt foo@maildaemon.org
#
# Check A access
#
helo_restrictions check_helo_a_access,inline:{168.100.3.2=reject}
helo spike.porcupine.org
helo www.porcupine.org
client_restrictions check_client_a_access,inline:{168.100.3.2=reject}
client spike.porcupine.org 1.2.3.4
client www.porcupine.org 1.2.3.4
reverse_client_restrictions check_reverse_client_a_access,inline:{168.100.3.2=reject}
client spike.porcupine.org 1.2.3.4
client www.porcupine.org 1.2.3.4
sender_restrictions check_sender_a_access,inline:{168.100.3.2=reject}
mail foo@spike.porcupine.org
mail foo@www.porcupine.org
recipient_restrictions check_recipient_a_access,inline:{168.100.3.2=reject}
rcpt foo@spike.porcupine.org
rcpt foo@www.porcupine.org