summaryrefslogtreecommitdiff
path: root/test/confs/0428
blob: bb2c414fe2212ab827ab41a337af5f7c8afc1881 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Exim test configuration 0428

.include DIR/aux-var/std_conf_prefix


# ----- 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_8:
  driver = redirect
  local_parts = userx8
  allow_filter
  data = #Sieve filter\n \
	require["fileinto","comparator-i;ascii-numeric"]; \
        if header :comparator "i;ascii-numeric" "X-Sieve" "99" { \
          fileinto "inbox.JUNK"; \
          stop; \
        }
  user = CALLER
  file_transport = t1
  reply_transport = t3

r2_9:
  driver = redirect
  local_parts = userx9
  allow_filter
  data = #Sieve filter\n \
	require["fileinto","comparator-i;ascii-numeric"]; \
        if header :comparator "i;ascii-numeric" "X-Sieve" "98" { \
          fileinto "inbox.JUNK"; \
          stop; \
        }
  user = CALLER
  file_transport = t1
  reply_transport = t3

r2_10:
  driver = redirect
  local_parts = userx10
  allow_filter
  data = #Sieve filter\n \
	 require["fileinto","comparator-i;ascii-numeric"]; \
        if header :comparator "i;ascii-numeric" "X-Sieve" "99" { \
          fileinto "inbox.JUNK"; \
          stop; \
        }
  user = CALLER
  file_transport = t1
  reply_transport = t3

r2_11:
  driver = redirect
  local_parts = userx11
  allow_filter
  data = #Sieve filter\n \
	 require["fileinto","comparator-i;ascii-numeric"]; \
        if header :comparator "i;ascii-numeric" "X-Sieve" "-99" { \
          fileinto "inbox.JUNK"; \
          stop; \
        }
  user = CALLER
  file_transport = t1
  reply_transport = t3

r2_12:
  driver = redirect
  local_parts = userx12
  allow_filter
  data = #Sieve filter\n \
	 require["fileinto","comparator-i;ascii-numeric"]; \
        if header :comparator "i;ascii-numeric" "X-Sieve" "-98" { \
          fileinto "inbox.JUNK"; \
          stop; \
        }
  user = CALLER
  file_transport = t1
  reply_transport = t3

r2_13:
  driver = redirect
  local_parts = userx13 : someone13
  allow_filter
  data = #Sieve filter\n \
	 require ["vacation"];  \
        vacation "I am gone.  Not here.";
  user = CALLER
  file_transport = t1
  reply_transport = t3
  sieve_vacation_directory = DIR/test-vacation-directory

r2_14:
  driver = redirect
  local_parts = userx14
  local_part_suffix = -*
  local_part_suffix_optional
  allow_filter
  data = #Sieve filter\n \
	 require ["envelope","fileinto"];  \
        if envelope :matches :localpart "to" "*-suffix" { \
          fileinto "userx-sawsuffix"; \
          stop;  \
        }   
  user = CALLER
  file_transport = t1
  reply_transport = t3

r2:
  driver = redirect
  allow_filter
  skip_syntax_errors
  data = "#Sieve filter\n$h_filter:"
  user = CALLER
  file_transport = t1
  reply_transport = t3


# ----- 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} \
              }} \
         }
  create_file = DIR/test-mail
  delivery_date_add
  envelope_to_add
  return_path_add
  user = CALLER

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

t3:
  driver = autoreply

# End