blob: 50f144caabcdbd742088ee4b539ac4ec49a4aeee (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Exim test configuration 0536
FORBID_SMTP_CODE = false
.include DIR/aux-var/std_conf_prefix
primary_hostname = myhost.test.ex
# ----- Main settings -----
acl_smtp_rcpt = rcpt
acl_not_smtp = not_smtp
trusted_users = CALLER
# ----- ACLs -----
begin ACL
rcpt:
deny local_parts = user1
message = No code
deny local_parts = user2
message = 599 Main code
deny local_parts = user3
message = 599 Main code\non two lines
deny local_parts = user4
message = 599 5.2.3 Main and extended code
deny local_parts = user5
message = 599 5.12.3 Main and extended code\non two lines
deny local_parts = user6
message = 299 Wrong code
deny local_parts = user7
message = 299 Wrong code
log_message = A different log message
defer local_parts = user8
message = 499 4.12.343 Main and extended code\non two lines
defer local_parts = user9
message = 499 4.1234.343 Main and extended code\non two lines
defer local_parts = user10
message = 399 Wrong code
deny local_parts = user20
!verify = recipient
deny local_parts = user21
!verify = recipient
deny local_parts = user22
!verify = recipient
deny local_parts = user23
!verify = recipient
deny local_parts = user30
!verify = recipient
deny local_parts = user31
!verify = recipient
deny local_parts = user32
!verify = recipient
deny local_parts = user33
!verify = recipient
deny message = Should not get this
not_smtp:
accept senders = : oksender@test.ex
deny senders = user1@test.ex
message = No code
deny senders = user2@test.ex
message = 599 Main code
deny message = Should not get this
# ----- Routers -----
begin routers
r1:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}}
forbid_smtp_code = FORBID_SMTP_CODE
r2:
driver = accept
transport = t1
# ----- Transports -----
begin transports
t1:
driver = appendfile
file = DIR/test-mail/$local_part
create_file = DIR/test-mail
user = CALLER
|