Add test skeleton
[users/jgh/exim.git] / test / confs / 2009
1 # Exim test configuration 2009
2
3 SERVER =
4
5 exim_path = EXIM_PATH
6 host_lookup_order = bydns
7 primary_hostname = myhost.test.ex
8 rfc1413_query_timeout = 0s
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/SERVER%slog
11 gecos_pattern = ""
12 gecos_name = CALLER_NAME
13
14 # ----- Main settings -----
15
16 acl_smtp_rcpt = check_recipient
17 hostlist tls_hosts = 127.0.0.1
18
19 queue_only
20 queue_run_in_order
21
22 tls_advertise_hosts = *
23
24 # Set certificate only if server
25
26 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
27 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
28
29
30
31 # ----- ACL -----
32
33 begin acl
34
35 check_recipient:
36   deny    hosts = +tls_hosts
37           message = encryption required
38          !encrypted = *
39   accept  domains = +local_domains
40   deny    message = relay not permitted
41
42
43 # ----- Routers -----
44
45 begin routers
46
47 client:
48   driver = accept
49   condition = ${if eq {SERVER}{server}{no}{yes}}
50   retry_use_local_part
51   transport = send_to_server
52
53
54 # ----- Transports -----
55
56 begin transports
57
58 send_to_server:
59   driver = smtp
60   allow_localhost
61   hosts = 127.0.0.1
62   hosts_avoid_tls = 127.0.0.1
63   port = PORT_D
64
65 # End