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