DKIM: move ed25519_privkey_pem_to_pubkey_raw_b64 to src/util/ and add usage notes...
[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
2c47372f
JH
29
30.ifdef _HAVE_DKIM
31log_selector = +received_recipients +dkim_verbose
32.else
48f1c853 33log_selector = +received_recipients
2c47372f 34.endif
7e3ce68e 35
d29a84b5 36.ifdef _OPT_MAIN_TLS_CERTIFICATE
e7621e83
JH
37tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
38tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
d29a84b5 39.endif
7e3ce68e 40
0b20855c
JH
41ALLOW
42
7e3ce68e
JH
43# ----- ACL -----
44
45begin acl
46
47check_recipient:
48 accept hosts = :
49 accept domains = +local_domains
50 deny message = relay not permitted
51
0b20855c
JH
52check_prdr:
53 accept local_parts = good
54 deny
55
7e3ce68e
JH
56check_data:
57 warn message = X-acl-message-linecount: $message_linecount
58 accept
59
7e3ce68e
JH
60# ----- Routers -----
61
62begin routers
63
e027f545
JH
64to_server:
65 driver = accept
66 condition = ${if !eq {SERVER}{server}}
6acd9fcf 67 transport = remote_smtp${if eq {OPT}{dkim} {_dkim}}
e027f545
JH
68 errors_to = ""
69
7e3ce68e
JH
70fail_remote_domains:
71 driver = redirect
72 domains = ! +local_domains
73 data = :fail: unrouteable mail domain "$domain"
74
75localuser:
76 driver = accept
77 check_local_user
78 transport = local_delivery
79 headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
80
81
82# ----- Transports -----
83
84begin transports
85
86local_delivery:
87 driver = appendfile
88 delivery_date_add
89 envelope_to_add
90 file = DIR/test-mail/$local_part
91 headers_add = "X-body-linecount: $body_linecount\n\
92 X-message-linecount: $message_linecount\n\
93 X-received-count: $received_count"
94 return_path_add
95
e027f545
JH
96remote_smtp:
97 driver = smtp
98 hosts = 127.0.0.1
99 port = PORT_S
100 allow_localhost
101 command_timeout = 2s
102 final_timeout = 2s
103
48f1c853
JH
104remote_smtp_dkim:
105 driver = smtp
106 hosts = 127.0.0.1
107 port = PORT_S
108 allow_localhost
109 command_timeout = 2s
110 final_timeout = 2s
111
6acd9fcf 112.ifdef OPT
48f1c853
JH
113 dkim_domain = test.ex
114 dkim_selector = sel
115 dkim_private_key = DIR/aux-fixed/dkim/dkim.private
116.ifndef HEADERS_MAXSIZE
6acd9fcf 117 dkim_sign_headers = LIST
48f1c853 118.endif
9960d1e5 119.endif
48f1c853 120
e027f545
JH
121# ----- Retry -----
122
123begin retry
124* * F,30m,5m;
7e3ce68e 125# End