Testsuite: Use explicit interface for send to localhost
[exim.git] / test / confs / 0548
1 # Exim test configuration 0548
2
3 SERVER=
4
5 exim_path = EXIM_PATH
6 host_lookup_order = bydns
7 rfc1413_query_timeout = 0s
8 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/SERVER%slog
10 gecos_pattern = ""
11 gecos_name = CALLER_NAME
12
13 # ----- Main settings -----
14
15 acl_smtp_connect = acl_connect
16 acl_smtp_rcpt = acl_rcpt
17 qualify_domain = test.ex
18 queue_run_in_order
19
20
21 # ----- ACLs -----
22
23 begin acls
24
25 acl_connect:
26   defer message = host deferred
27         hosts = thishost.test.ex
28   accept
29
30 acl_rcpt:
31   defer message = Recipient deferred
32
33
34 # ----- Routers -----
35
36 begin routers
37
38 smarthost:
39   driver = accept
40   transport = smtp
41
42
43 # ----- Transports -----
44
45 begin transports
46
47 smtp:
48   driver = smtp
49   hosts = HOSTIPV4 : thishost.test.ex
50   allow_localhost
51   port = PORT_D
52   interface = ${if eq {$host_address}{127.0.0.1} {127.0.0.1}}
53
54
55 # ----- Retry -----
56
57 begin retry
58
59 thishost.test.ex  *  F,15s,1s
60 *                 *  F,1s,1s; F,1s,5s
61
62 # End