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