Cutthrough: option to use transport-defined mailfrom. Bug 3071
[exim.git] / test / confs / 5400
1 # Exim test configuration 5400
2
3 # any options on the cutthrough_delivery control
4 CONTROL=
5
6 # optional verify-callout
7 OPT=
8
9 # return_path on transport
10 RETURN=
11
12 .include DIR/aux-var/std_conf_prefix
13
14 primary_hostname = myhost.test.ex
15
16 log_selector = +received_recipients +all_parents +return_path_on_delivery
17 queue_only
18
19 # ----- Main settings -----
20
21 domainlist local_domains = test.ex : *.test.ex
22
23 acl_smtp_rcpt = ar
24
25
26 # ----- ACLs -----
27
28 begin acl
29
30 ar:
31   accept
32         control = cutthrough_deliveryCONTROL
33         OPT
34         logwrite = rcpt for $local_part@$domain
35
36 # ----- Routers -----
37
38 begin routers
39
40 redir:
41   driver = redirect
42   local_parts = ^r
43   data =        ${substr_1:$local_part}@$domain
44
45 dns:
46   driver = dnslookup
47   domains = localhost.test.ex : localhost4.test.ex : thishost.test.ex
48   self = send
49   transport = smtp
50
51 all:
52   driver = manualroute
53   domains = ! +local_domains
54   route_list = special.com HOSTIPV4 ; * 127.0.0.1
55   self = send
56   transport = ${if eq {special_tpt}{$local_part} {smtp2}{smtp}}
57   headers_remove = X-hdr-rtr
58   headers_add =    X-hdr-rtr-new: $h_X-hdr-rtr:+++
59   errors_to =      ""
60   no_more
61
62
63 # ----- Transports -----
64
65 begin transports
66
67 smtp:
68   driver =      smtp
69   interface =   HOSTIPV4
70   port =        PORT_S
71   hosts_try_fastopen =  :
72   headers_add = ${if def:h_X-hdr-rtr {X-hdr-tpt-new: new} {}}
73   return_path = RETURN
74
75 smtp2:
76   driver =      smtp
77   interface =   HOSTIPV4
78   port =        PORT_S
79   hosts_try_fastopen =  :
80
81
82 # End