OpenSSL: fix non-DANE build
[exim.git] / test / confs / 0901
1 # Exim test configuration 0901
2 SERVER=
3 SRV=
4 LIST=
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 {SRV}{tls} {*}}
16
17 .ifdef _HAVE_DMARC
18 dmarc_tld_file =
19 .endif
20 .ifdef _OPT_MAIN_LIMITS_ADVERTISE_HOSTS
21 limits_advertise_hosts = !*
22 .endif
23
24 pipelining_advertise_hosts = :
25
26 # ----- Main settings -----
27
28 primary_hostname = testhost.test.ex
29 domainlist local_domains = @ : test.ex
30
31 acl_smtp_rcpt = check_recipient
32 acl_smtp_data_prdr = check_prdr
33 acl_smtp_data = check_data
34 trusted_users = CALLER
35 queue_only
36 smtp_receive_timeout = 2s
37 log_selector = +received_recipients
38
39 .ifdef _OPT_MAIN_TLS_CERTIFICATE
40 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
41 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
42 .endif
43
44 ALLOW
45
46 # ----- ACL -----
47
48 begin acl
49
50 check_recipient:
51   accept hosts = :
52   accept domains = +local_domains
53   deny   message = relay not permitted
54
55 check_prdr:
56   accept local_parts = good
57   deny
58
59 check_data:
60   warn   message = X-acl-message-linecount: $message_linecount
61   accept
62
63 # ----- Routers -----
64
65 begin routers
66
67 to_server:
68   driver = accept
69   condition =   ${if !eq {SERVER}{server}}
70   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
71   errors_to =   ""
72
73 fail_remote_domains:
74   driver = redirect
75   domains = ! +local_domains
76   data = :fail: unrouteable mail domain "$domain"
77
78 localuser:
79   driver = accept
80   check_local_user
81   transport = local_delivery
82   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
83
84
85 # ----- Transports -----
86
87 begin transports
88
89 local_delivery:
90   driver = appendfile
91   delivery_date_add
92   envelope_to_add
93   file = DIR/test-mail/$local_part
94   create_file = DIR/test-mail
95   headers_add = "X-body-linecount: $body_linecount\n\
96                  X-message-linecount: $message_linecount\n\
97                  X-received-count: $received_count"
98   return_path_add
99
100 remote_smtp:
101   driver = smtp
102   hosts =       127.0.0.1
103   port =        PORT_S
104   hosts_try_fastopen =  :
105   allow_localhost
106   command_timeout = 2s
107   final_timeout = 2s
108
109 remote_smtp_dkim:
110   driver = smtp
111   hosts =       127.0.0.1
112   port =        PORT_S
113   hosts_try_fastopen =  :
114   allow_localhost
115   command_timeout = 2s
116   final_timeout = 2s
117
118 .ifdef OPT
119   dkim_domain =         test.ex
120   dkim_selector =       sel
121   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
122 .ifndef HEADERS_MAXSIZE
123   dkim_sign_headers =   LIST
124 .endif
125 .endif
126
127 # ----- Retry -----
128
129 begin retry
130 * * F,30m,5m;
131 # End