Tidying: coverity issues
[users/jgh/exim.git] / test / confs / 4201
1 # Exim test configuration 4201
2 # SMTPUTF8 handling
3
4 OPTION = *
5 CONTROL =
6 INSERT =
7 SUB =
8
9 exim_path = EXIM_PATH
10 keep_environment =
11 host_lookup_order = bydns
12 spool_directory = DIR/spool
13 log_file_path = DIR/spool/log/%slog
14 gecos_pattern = ""
15 gecos_name = CALLER_NAME
16 tls_advertise_hosts =
17
18 # ----- Main settings -----
19
20 domainlist local_domains = test.ex : cname
21
22 acl_smtp_rcpt = check_recipient
23 acl_not_smtp = non_smtp
24
25 trusted_users = CALLER
26 log_selector = +received_recipients +sender_on_delivery
27
28 .ifdef SERVER
29 queue_only
30 queue_run_in_order
31 .endif
32
33 smtputf8_advertise_hosts = OPTION
34
35 SUB
36
37
38 # ----- ACL -----
39
40 begin acl
41
42
43 .ifdef SERVER
44
45 check_recipient:
46   accept hosts = :
47   accept domains = +local_domains
48          local_parts = ^(xn--)?user.*\$
49   deny   message = relay not permitted
50
51 .else
52
53 sub:
54 .ifdef INSERT
55   require INSERT
56 .endif
57 .ifdef CONTROL
58   require CONTROL
59 .endif
60   accept
61
62 check_recipient:
63   accept domains = *
64          acl = sub
65
66 non_smtp:
67   accept senders = :
68          control = queue_only
69   accept
70
71 .endif
72
73 # ----- Routers -----
74
75 begin routers
76
77 .ifdef SERVER
78
79 fail_remote_domains:
80   driver = redirect
81   domains = ! +local_domains
82   data = :fail: unrouteable mail domain "$domain"
83
84 bounces:
85   driver = redirect
86   condition = ${if eq {} {$sender_address}}
87   data = DIR/test-mail/$local_part
88   file_transport = local_delivery
89
90 localuser:
91   driver = redirect
92   data = :blackhole:
93
94 .else
95
96 bounces:
97   driver = redirect
98   domains = *.local
99   data = DIR/test-mail/$local_part
100   file_transport = local_delivery
101
102 rmt:
103   driver = manualroute
104   domains = +local_domains
105   route_data = <;[127.0.0.1]:PORT_D
106   transport = rmt_smtp
107   self = send
108
109 .endif
110
111 # ----- Transports -----
112
113 begin transports
114
115 local_delivery:
116   driver = appendfile
117   user = CALLER
118   delivery_date_add
119   envelope_to_add
120   file = DIR/test-mail/$local_part
121   headers_add = "X-body-linecount: $body_linecount\n\
122                  X-message-linecount: $message_linecount\n\
123                  X-received-count: $received_count"
124   return_path_add
125
126 rmt_smtp:
127   driver = smtp
128
129 # End