summaryrefslogtreecommitdiff
path: root/test/confs/0428
blob: 60b49e476672b3e86fce711f26780a6459569cf9 (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
# Exim test configuration 0428

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

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

primary_hostname = mail.test.ex
qualify_domain = test.ex
trusted_users = CALLER

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

begin routers

rb:
  driver = accept
  senders = :
  transport = t2

r0:
  driver = redirect
  local_parts = redirected
  allow_filter
  user = CALLER
  file_transport = t1
  data = "#Sieve filter\n keep;"

r1:
  driver = redirect
  local_parts = ^restrict-
  allow_filter
  forbid_file
  skip_syntax_errors
  data = "#Sieve filter\n$h_filter:"
  user = CALLER
  file_transport = t1

r2:
  driver = redirect
  local_part_suffix = -*
  local_part_suffix_optional
  allow_filter
  data = "#Sieve filter\n$h_filter:"
  user = CALLER
  file_transport = t1
  reply_transport = t3
  sieve_vacation_directory = DIR/test-vacation-directory


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

begin transports

t1:
  driver = appendfile
  file = ${if eq{$address_file}{inbox} \
              {DIR/test-mail/$local_part} \
              {${if eq{${substr_0_1:$address_file}}{/} \
                    {$address_file} \
                    {DIR/test-mail/$address_file} \
              }} \
         }
  delivery_date_add
  envelope_to_add
  return_path_add
  user = CALLER

t2:
  driver = appendfile
  file = DIR/test-mail/$local_part
  delivery_date_add
  envelope_to_add
  return_path_add
  user = CALLER

t3:
  driver = autoreply

# End