Use compressed form of ipv6 in $sender_host_address under -bh. Bug 3027
[exim.git] / test / confs / 0375
1 # Exim test configuration 0375
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 domainlist local_domains = test.ex : *.test.ex
10 log_selector = +return_path_on_delivery
11 remote_max_parallel = 1
12
13
14 # ----- Routers -----
15
16 begin routers
17
18 u1:
19   driver = accept
20   local_parts = ^a\\d
21   transport = ut1
22   errors_to =
23   unseen
24
25 ut2:
26   driver = accept
27   local_parts = ^b\\d
28   transport = ut2
29   errors_to = ""
30   unseen
31
32 ut3:
33   driver = accept
34   local_parts = ^c\\d
35   transport = ut3
36   errors_to =
37   unseen
38
39 ut4:
40   driver = accept
41   local_parts = ^d\\d
42   transport = ut4
43   errors_to =
44   unseen
45
46 ut5:
47   driver = accept
48   local_parts = ^e\\d
49   transport = ut5
50   unseen
51
52 ut6:
53   driver = accept
54   local_parts = ^f\\d
55   address_data = $sender_address
56   transport = ut6
57   errors_to =
58   unseen
59
60 ut7:
61   driver = accept
62   local_parts = ^g\\d
63   address_data = $bad expansion
64   transport = ut6
65   errors_to =
66   unseen
67   disable_logging
68
69 ut8:
70   driver = accept
71   local_parts = ^h\\d
72   transport = ut1
73   errors_to = ${if eq{0}{1}{x@y}fail}
74   unseen
75
76 real:
77   driver = accept
78   transport = real
79
80
81 # ----- Transports -----
82
83 begin transports
84
85 # Successful local transport
86 ut1:
87   driver = appendfile
88   file = DIR/test-mail/$local_part-u
89   create_file = DIR/test-mail
90   user = CALLER
91   return_path_add
92   envelope_to_add
93   disable_logging
94
95 # Hard unsuccessful local transport
96
97 ut2:
98   driver = pipe
99   command = /non/existent/file
100   user = CALLER
101   disable_logging
102
103 # Soft unsuccessful local transport
104
105 ut3:
106   driver = pipe
107   command = /non/existent/file
108   temp_errors = *
109   user = CALLER
110   disable_logging
111
112 # Remote transport - all types
113
114 ut4:
115   driver = smtp
116   hosts = 127.0.0.1
117   port = PORT_S
118   hosts_try_fastopen = :
119   allow_localhost
120   max_rcpt = 1
121   disable_logging
122
123 # Another remote transport with return_path set empty
124
125 ut5:
126   driver = smtp
127   hosts = 127.0.0.1
128   port = PORT_S
129   hosts_try_fastopen =  :
130   allow_localhost
131   max_rcpt = 1
132   disable_logging
133   return_path =
134
135 # Another remote transport with return_path reinstating original
136
137 ut6:
138   driver = smtp
139   hosts = 127.0.0.1
140   port = PORT_S
141   hosts_try_fastopen =  :
142   allow_localhost
143   max_rcpt = 1
144   disable_logging
145   return_path = $address_data
146
147 # Real delivery
148 real:
149   driver = appendfile
150   file = DIR/test-mail/$local_part
151   create_file = DIR/test-mail
152   user = CALLER
153   return_path_add
154   envelope_to_add
155
156
157 # ----- Retry -----
158
159
160 begin retry
161
162 * * F,5d,1d
163
164
165 # End