summaryrefslogtreecommitdiff
path: root/test/confs/0532
blob: 42d613b19d976765c2a3ef28eb2a7d248964762d (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
# Exim test configuration 0532

CONNECTCOND=

exim_path = EXIM_PATH
host_lookup_order = bydns
primary_hostname = myhost.test.ex
rfc1413_query_timeout = 0s
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME

# ----- Main settings -----

acl_smtp_connect = connect
acl_smtp_mail = mail
acl_smtp_rcpt = rcpt
acl_smtp_predata = predata
acl_smtp_data = data
acl_not_smtp = notsmtp

qualify_domain = test.ex
trusted_users = CALLER


# ----- ACL -----

begin acl

connect:
  accept CONNECTCOND

mail:
  accept add_header = MAIL: one
         senders    = mailok@test.ex
         add_header = MAIL: two\nMAIL: three
  accept

rcpt:
  accept add_header  = RCPT: one
         add_header  = DUP: duplicate
         local_parts = rcptok
         add_header  = RCPT: two\n  continued\n
  deny   add_header  = RCPT: denied $local_part


predata:
  warn   add_header = PREDATA-WARN: added with add_header
         message    = PREDATA-WARN: added with message
  accept add_header = PREDATA: recipients are $recipients

data:
  accept add_header = DATA: one
         add_header = DUP: duplicate
         condition  = ${if eq{$h_cond:}{accept}}

notsmtp:
  accept add_header = NOTSMTP: $recipients


# ----- Routers -----

begin routers

r1:
  driver = accept
  transport = t1


# ----- Transports -----

begin transports

t1:
  driver = appendfile
  file = DIR/test-mail/$local_part
  user = CALLER

# End