Use compressed form of ipv6 in $sender_host_address under -bh. Bug 3027
[exim.git] / test / confs / 0227
1 # Exim test configuration 0227
2
3 .include DIR/aux-var/std_conf_prefix
4
5 primary_hostname = myhost.test.ex
6
7 # ----- Main settings -----
8
9 domainlist local_domains = test.ex
10
11 acl_smtp_rcpt = check_recipient
12 acl_smtp_data = check_data
13
14
15 # ----- ACL -----
16
17 begin acl
18
19 check_recipient:
20   warn    senders  = ^uncheckable2@
21           control  = no_multiline_responses
22   accept  hosts    = V4NET.0.0.4
23   deny    hosts    = V4NET.0.0.1
24          !verify   = sender/callout=no_cache
25   deny    hosts    = V4NET.0.0.3
26          !verify   = recipient/callout=no_cache
27   deny    hosts    = V4NET.0.0.7
28          !verify   = recipient/callout=no_cache,use_sender,random
29   deny    hosts    = V4NET.0.0.5
30          !verify   = sender/callout=no_cache/check_postmaster
31   deny    hosts    = V4NET.0.0.6
32          !verify   = sender/callout=no_cache
33   require verify   = sender
34   accept  domains  = +local_domains
35   deny    message  = relay not permitted
36
37 check_data:
38   deny    hosts = V4NET.0.0.4
39          !verify = header_sender/callout=no_cache
40   accept
41
42
43 # ----- Routers -----
44
45 begin routers
46
47 mxt3:
48   driver = dnslookup
49   domains = mxt3.test.ex
50   self = send
51   transport = smtp
52
53 localhost1:
54   driver = manualroute
55   domains = localhost1
56   route_list = * 127.0.0.1 byname
57   self = send
58   transport = smtp
59   no_more
60
61 lmtp:
62   driver = manualroute
63   domains = remote.lmtp
64   route_list = * 127.0.0.1
65   transport = lmtp
66   self = send
67
68 all:
69   driver = manualroute
70   domains = ! +local_domains
71   route_list = * "127.0.0.1 : HOSTIPV4" byname
72   self = send
73   transport = smtp
74   no_more
75
76
77 # ----- Transports -----
78
79 begin transports
80
81 smtp:
82   driver =      smtp
83   port =        PORT_S
84   interface =   ${if eq {bindfail}{$local_part} {1.1.1.1}{}}
85   hosts_try_fastopen =  :
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