Events: dns:fail Bug 3011
[exim.git] / test / confs / 1003
1 # Exim test configuration 1003
2
3 SERVER =
4
5 .include DIR/aux-var/std_conf_prefix
6
7 primary_hostname = myhost.test.ex
8
9 # ----- Main settings -----
10
11 acl_smtp_rcpt = accept
12
13 queue_only
14 queue_run_in_order
15
16
17 # ----- Routers -----
18
19 begin routers
20
21 client:
22   driver = accept
23   condition = ${if eq {SERVER}{server}{no}{yes}}
24   address_data = ${substr_1_1:$domain}
25   transport = send_to_server${if eq {1}{$address_data} {1} \
26                                 {${if eq {2}{$address_data} {2} \
27                                 {${if eq {3}{$address_data} {3} \
28                                 {${if eq {4}{$address_data} {4}{5}}}}}}}}
29
30 server:
31   driver = accept
32   transport = local_delivery
33
34
35 # ----- Transports -----
36
37 begin transports
38
39 local_delivery:
40   driver = appendfile
41   file = DIR/test-mail/$local_part
42   create_file = DIR/test-mail
43   user = CALLER
44
45 send_to_server1:
46   driver = smtp
47   allow_localhost
48   hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
49   port = PORT_D
50   hosts_try_fastopen = :
51   interface = <; ::1 ; HOSTIPV4
52
53 send_to_server2:
54   driver = smtp
55   allow_localhost
56   hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
57   port = PORT_D
58   hosts_try_fastopen = :
59   interface = <; HOSTIPV6 ; HOSTIPV4
60
61 send_to_server3:
62   driver = smtp
63   allow_localhost
64   hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
65   port = PORT_D
66   hosts_try_fastopen = :
67   interface = <; ${if eq{0}{1}{HOSTIPV6}fail}
68
69 send_to_server4:
70   driver = smtp
71   allow_localhost
72   hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
73   port = PORT_D
74   hosts_try_fastopen = :
75   interface = <; ${if eq{0}{1}{HOSTIPV6}{  }}
76
77 send_to_server5:
78   driver = smtp
79   allow_localhost
80   hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
81   port = PORT_D
82   hosts_try_fastopen = :
83   interface = <; ${if 
84
85 send_to_server:
86   driver = smtp
87   allow_localhost
88   hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
89   port = PORT_D
90   hosts_try_fastopen = :
91   interface = ${expand:$h_interface:}
92
93
94 # ----- Retry -----
95
96 begin retry
97
98 * * F,5d,10s
99
100 # End