Commit | Line | Data |
---|---|---|
a769a501 | 1 | # Exim test configuration 1003 |
afda344b PH |
2 | |
3 | SERVER = | |
4 | ||
d4dc049f JH |
5 | .include DIR/aux-var/std_conf_prefix |
6 | ||
afda344b | 7 | primary_hostname = myhost.test.ex |
afda344b PH |
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}} | |
f3ebb786 JH |
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}}}}}}}} | |
afda344b PH |
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 | user = CALLER | |
43 | ||
f3ebb786 JH |
44 | send_to_server1: |
45 | driver = smtp | |
46 | allow_localhost | |
47 | hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}} | |
48 | port = PORT_D | |
277b9979 | 49 | hosts_try_fastopen = : |
f3ebb786 JH |
50 | interface = <; ::1 ; HOSTIPV4 |
51 | ||
52 | send_to_server2: | |
53 | driver = smtp | |
54 | allow_localhost | |
55 | hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}} | |
56 | port = PORT_D | |
277b9979 | 57 | hosts_try_fastopen = : |
f3ebb786 JH |
58 | interface = <; HOSTIPV6 ; HOSTIPV4 |
59 | ||
60 | send_to_server3: | |
61 | driver = smtp | |
62 | allow_localhost | |
63 | hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}} | |
64 | port = PORT_D | |
277b9979 | 65 | hosts_try_fastopen = : |
f3ebb786 JH |
66 | interface = <; ${if eq{0}{1}{HOSTIPV6}fail} |
67 | ||
68 | send_to_server4: | |
69 | driver = smtp | |
70 | allow_localhost | |
71 | hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}} | |
72 | port = PORT_D | |
277b9979 | 73 | hosts_try_fastopen = : |
f3ebb786 JH |
74 | interface = <; ${if eq{0}{1}{HOSTIPV6}{ }} |
75 | ||
76 | send_to_server5: | |
77 | driver = smtp | |
78 | allow_localhost | |
79 | hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}} | |
80 | port = PORT_D | |
277b9979 | 81 | hosts_try_fastopen = : |
f3ebb786 JH |
82 | interface = <; ${if |
83 | ||
afda344b PH |
84 | send_to_server: |
85 | driver = smtp | |
86 | allow_localhost | |
f3ebb786 | 87 | hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}} |
afda344b | 88 | port = PORT_D |
277b9979 | 89 | hosts_try_fastopen = : |
afda344b PH |
90 | interface = ${expand:$h_interface:} |
91 | ||
92 | ||
93 | # ----- Retry ----- | |
94 | ||
95 | begin retry | |
96 | ||
97 | * * F,5d,10s | |
98 | ||
99 | # End |