appendfile: taint-enforce file & directory options
[users/jgh/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/${bless:$local_part}
42   user = CALLER
43
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
49   hosts_try_fastopen = :
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
57   hosts_try_fastopen = :
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
65   hosts_try_fastopen = :
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
73   hosts_try_fastopen = :
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
81   hosts_try_fastopen = :
82   interface = <; ${if 
83
84 send_to_server:
85   driver = smtp
86   allow_localhost
87   hosts = ${if eq {$local_part}{user4} {127.0.0.1} {<; ::1}}
88   port = PORT_D
89   hosts_try_fastopen = :
90   interface = ${expand:$h_interface:}
91
92
93 # ----- Retry -----
94
95 begin retry
96
97 * * F,5d,10s
98
99 # End