Testsuite: Use explicit interface for send to localhost
[exim.git] / test / confs / 0495
1 # Exim test configuration 0495
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 rfc1413_query_timeout = 0s
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11
12 # ----- Main settings -----
13
14 acl_smtp_rcpt = check_rcpt
15 mua_wrapper = TRUE
16 trusted_users = CALLER
17
18 # These settings should be ignored
19
20 queue_only
21 queue_smtp_domains = *
22 deliver_drop_privilege = FALSE
23 remote_max_parallel = 5
24
25
26 # ----- ACL -----
27
28 begin acl
29
30 # The controls will be ignored
31
32 check_rcpt:
33 accept control = queue_only
34 control = freeze
35
36
37 # ----- Routers -----
38
39 begin routers
40
41 r1:
42 driver = redirect
43 data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}}
44 file_transport = t3
45 allow_fail
46 allow_defer
47
48 r2:
49 driver = accept
50 local_parts = otherhost
51 transport = t2
52
53 r3:
54 driver = accept
55 local_parts = ^badport
56 transport = t4
57
58 r9:
59 driver = accept
60 transport = t1
61 headers_add = ${if eq{$local_part}{addheader}{Added: text}}
62
63
64 # ----- Transports -----
65
66 begin transports
67
68 t1:
69 driver = smtp
70 hosts = 127.0.0.1 : HOSTIPV4
71 port = PORT_S
72 interface = ${if eq {$host}{127.0.0.1} {127.0.0.1}}
73 allow_localhost
74 command_timeout = 1s
75
76 t2:
77 driver = smtp
78 hosts = V4NET.9.8.7
79 port = PORT_S
80
81 t3:
82 driver = appendfile
83 file = DIR/test-mail/$local_part
84 user = CALLER
85
86 t4:
87 driver = smtp
88 hosts = V4NET.10.10.10
89 port = nonexistent
90
91 # End