Testsuite: Use explicit interface for send to localhost
[exim.git] / test / confs / 0227
1 # Exim test configuration 0227
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 domainlist local_domains = test.ex
15
16 acl_smtp_rcpt = check_recipient
17 acl_smtp_data = check_data
18
19
20 # ----- ACL -----
21
22 begin acl
23
24 check_recipient:
25   warn    senders  = ^uncheckable2@
26           control  = no_multiline_responses
27   accept  hosts    = V4NET.0.0.4
28   deny    hosts    = V4NET.0.0.1
29          !verify   = sender/callout=no_cache
30   deny    hosts    = V4NET.0.0.3
31          !verify   = recipient/callout=no_cache
32   deny    hosts    = V4NET.0.0.5
33          !verify   = sender/callout=no_cache/check_postmaster
34   require verify   = sender
35   accept  domains  = +local_domains
36   deny    message  = relay not permitted
37
38 check_data:
39   deny    hosts = V4NET.0.0.4
40          !verify = header_sender/callout=no_cache
41   accept
42
43
44 # ----- Routers -----
45
46 begin routers
47
48 mxt3:
49   driver = dnslookup
50   domains = mxt3.test.ex
51   self = send
52   transport = smtp
53
54 localhost1:
55   driver = manualroute
56   domains = localhost1
57   route_list = * 127.0.0.1 byname
58   self = send
59   transport = smtp
60   no_more
61
62 lmtp:
63   driver = manualroute
64   domains = remote.lmtp
65   route_list = * 127.0.0.1
66   transport = lmtp
67   self = send
68
69 all:
70   driver = manualroute
71   domains = ! +local_domains
72   route_list = * "127.0.0.1 : HOSTIPV4" byname
73   self = send
74   transport = smtp
75   no_more
76
77
78 # ----- Transports -----
79
80 begin transports
81
82 smtp:
83   driver = smtp
84   port = PORT_S
85   interface = ${if eq {$host}{127.0.0.1} {127.0.0.1}}
86
87 lmtp:
88   driver = smtp
89   port = PORT_S
90   protocol = lmtp
91
92
93 # ----- Retry -----
94
95 begin retry
96
97 * * F,5d,10s
98
99
100 # End