Fix DISABLE_DKIM build & test. Fix build on systems lacking MAX in standard includes.
[exim.git] / test / confs / 0900
1 # Exim test configuration 0900
2 SERVER=
3 Y=
4 OPT=
5 ALLOW=
6
7 exim_path = EXIM_PATH
8 keep_environment =
9 host_lookup_order = bydns
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14 chunking_advertise_hosts = *
15 tls_advertise_hosts = ${if eq {Y}{tls} {*}}
16
17
18 # ----- Main settings -----
19
20 domainlist local_domains = @ : test.ex
21
22 acl_smtp_rcpt = check_recipient
23 acl_smtp_data_prdr = check_prdr
24 acl_smtp_data = check_data
25 trusted_users = CALLER
26 queue_only
27 smtp_receive_timeout = 2s
28 log_selector = +received_recipients
29
30 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
31 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
32
33 ALLOW
34
35 # ----- ACL -----
36
37 begin acl
38
39 check_recipient:
40 accept hosts = :
41 accept domains = +local_domains
42 deny message = relay not permitted
43
44 check_prdr:
45 accept local_parts = good
46 deny
47
48 check_data:
49 warn message = X-acl-message-linecount: $message_linecount
50 accept
51
52
53 # ----- Routers -----
54
55 begin routers
56
57 to_server:
58 driver = accept
59 condition = ${if !eq {SERVER}{server}}
60 transport = remote_smtp${if eq {X}{dkim} {_dkim}}
61 errors_to = ""
62
63 fail_remote_domains:
64 driver = redirect
65 domains = ! +local_domains
66 data = :fail: unrouteable mail domain "$domain"
67
68 localuser:
69 driver = accept
70 check_local_user
71 transport = local_delivery
72 headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
73
74
75 # ----- Transports -----
76
77 begin transports
78
79 local_delivery:
80 driver = appendfile
81 delivery_date_add
82 envelope_to_add
83 file = DIR/test-mail/$local_part
84 headers_add = "X-body-linecount: $body_linecount\n\
85 X-message-linecount: $message_linecount\n\
86 X-received-count: $received_count"
87 return_path_add
88
89 remote_smtp:
90 driver = smtp
91 hosts = 127.0.0.1
92 port = PORT_S
93 allow_localhost
94 command_timeout = 2s
95 final_timeout = 2s
96
97 remote_smtp_dkim:
98 driver = smtp
99 hosts = 127.0.0.1
100 port = PORT_S
101 allow_localhost
102 command_timeout = 2s
103 final_timeout = 2s
104
105 .ifdef X
106 dkim_domain = test.ex
107 dkim_selector = sel
108 dkim_private_key = DIR/aux-fixed/dkim/dkim.private
109 .ifndef HEADERS_MAXSIZE
110 dkim_sign_headers = OPT
111 .endif
112 .endif
113
114 # ----- Retry -----
115
116 begin retry
117 * * F,30m,5m;
118 # End