Testsuite: Use explicit interface for send to localhost
[exim.git] / test / confs / 0540
1 # Exim test configuration 0540
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
16 queue_only
17
18
19 # ----- ACLs -----
20
21 begin acl
22
23 check_rcpt:
24   accept  verify = recipient/callout
25
26
27 # ----- Routers -----
28
29 begin routers
30
31 r1:
32   driver = accept
33   transport = ${if match {$domain}{^yes}{t1}{t2}}
34
35
36 # ----- Transports -----
37
38 begin transports
39
40 t1:
41   driver = smtp
42   hosts = 127.0.0.1
43   port = PORT_S
44   interface = 127.0.0.1
45   allow_localhost
46   helo_data = ${if eq{$domain}{yes1}{localhost}{aname}}
47
48 t2:
49   driver = smtp
50   hosts = 127.0.0.1
51   port = PORT_S
52   interface = 127.0.0.1
53   allow_localhost
54
55 # End