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