Testsuite: avoid assuming 127.0.0.2 is a viable sending address
[users/heiko/exim.git] / test / confs / 2105
1 # Exim test configuration 2105
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10
11 # ----- Main settings -----
12
13 acl_smtp_rcpt = check_recipient
14
15 domainlist local_domains = test.ex
16 hostlist tls_relay_hosts = 127.0.0.1
17
18 queue_only
19 queue_run_in_order
20
21 tls_advertise_hosts = *
22
23 tls_certificate = DIR/aux-fixed/cert1
24 tls_privatekey = DIR/aux-fixed/cert1
25
26 # ----- ACL -----
27
28 begin acl
29
30 check_recipient:
31   accept  domains = +local_domains
32   accept  hosts = +tls_relay_hosts
33           endpass
34           message = encryption required
35           encrypted = *
36   deny    message = relay not permitted
37
38
39 # ----- Routers -----
40
41 begin routers
42
43 fail_remote_domains:
44   driver = redirect
45   domains = ! +local_domains
46   data = :fail: unrouteable mail domain "$domain"
47
48 abc:
49   driver = accept
50   retry_use_local_part
51   transport = local_delivery
52
53
54 # ----- Transports -----
55
56 begin transports
57
58 local_delivery:
59   driver = appendfile
60   file = DIR/test-mail/$local_part
61   headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn
62   user = CALLER
63
64 # End