summaryrefslogtreecommitdiffstats
path: root/src/smtpd/smtpd_addr_valid.in
blob: e89537dc010cb6c4e81cfb4b9112a529edc50aa2 (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
#
# Initialize
#
smtpd_delay_reject 0
mynetworks 127.0.0.0/8,168.100.189.0/28
local_recipient_maps inline:{foo_canon=whatever,bar_canon=whatever}
mydestination example.com
myorigin example.com

sender_canonical_maps inline:{foo@example.com=foo_canon@example.com}
recipient_canonical_maps inline:{bar@example.com=bar_canon@example.com}

sender_restrictions reject_unlisted_sender
# Expect accept
mail bar_canon@example.com
# Expect accept
mail bar@example.com
# Expect accept
mail foo_canon@example.com
# Expect accept
mail foo@example.com
# Expect reject
mail baz@example.com

recipient_restrictions reject_unlisted_recipient
# Expect accept
rcpt bar_canon@example.com
# Expect accept
rcpt bar@example.com
# Expect accept
rcpt foo_canon@example.com
# Expect reject
rcpt foo@example.com
# Expect reject
mail baz@example.com