summaryrefslogtreecommitdiff
path: root/test/confs/1003
blob: 62eca9f846a980ec2639b006c590af372af2c2bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Exim test configuration 1003

SERVER =

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

# ----- Main settings -----

acl_smtp_rcpt = accept

queue_only
queue_run_in_order


# ----- Routers -----

begin routers

client:
  driver = accept
  condition = ${if eq {SERVER}{server}{no}{yes}}
  address_data = ${substr_1_1:$domain}
  transport = send_to_server${if eq {1}{$address_data} {1} \
				{${if eq {2}{$address_data} {2} \
				{${if eq {3}{$address_data} {3} \
				{${if eq {4}{$address_data} {4}{5}}}}}}}}

server:
  driver = accept
  transport = local_delivery


# ----- Transports -----

begin transports

local_delivery:
  driver = appendfile
  file = DIR/test-mail/$local_part
  create_file = DIR/test-mail
  user = CALLER

send_to_server1:
  driver = smtp
  allow_localhost
  hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
  port = PORT_D
  hosts_try_fastopen = :
  interface = <; ::1 ; HOSTIPV4

send_to_server2:
  driver = smtp
  allow_localhost
  hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
  port = PORT_D
  hosts_try_fastopen = :
  interface = <; HOSTIPV6 ; HOSTIPV4

send_to_server3:
  driver = smtp
  allow_localhost
  hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
  port = PORT_D
  hosts_try_fastopen = :
  interface = <; ${if eq{0}{1}{HOSTIPV6}fail}

send_to_server4:
  driver = smtp
  allow_localhost
  hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
  port = PORT_D
  hosts_try_fastopen = :
  interface = <; ${if eq{0}{1}{HOSTIPV6}{  }}

send_to_server5:
  driver = smtp
  allow_localhost
  hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
  port = PORT_D
  hosts_try_fastopen = :
  interface = <; ${if 

send_to_server:
  driver = smtp
  allow_localhost
  hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
  port = PORT_D
  hosts_try_fastopen = :
  interface = ${expand:$h_interface:}


# ----- Retry -----

begin retry

* * F,5d,10s

# End