authenticator dynamic modules
[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 add_environment = SSLKEYLOGFILE=DIR/spool/sslkeys
10 host_lookup_order = bydns
11 spool_directory = DIR/spool
12 log_file_path = DIR/spool/log/SERVER%slog
13 gecos_pattern = ""
14 gecos_name = CALLER_NAME
15 chunking_advertise_hosts = *
16 .ifdef _HAVE_TLS
17 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
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 .ifdef _OPT_MAIN_LIMITS_ADVERTISE_HOSTS
26 limits_advertise_hosts = !*
27 .endif
28
29 # ----- Main settings -----
30
31 primary_hostname = testhost.test.ex
32 domainlist local_domains = @ : test.ex
33
34 acl_smtp_rcpt = check_recipient
35 .ifdef _HAVE_PRDR
36 acl_smtp_data_prdr = check_prdr
37 .endif
38 acl_smtp_data = check_data
39 trusted_users = CALLER
40 queue_only
41 smtp_receive_timeout = 2s
42
43 .ifdef _HAVE_DKIM
44 log_selector = +received_recipients +connection_id +millisec +dkim_verbose
45 .else
46 log_selector = +received_recipients +connection_id +millisec
47 .endif
48
49 .ifdef _HAVE_TLS
50 tls_certificate = DIR/aux-fixed/cert1
51 .endif
52
53 ALLOW
54
55 # ----- ACL -----
56
57 begin acl
58
59 check_recipient:
60   accept hosts = :
61   accept domains = +local_domains
62   deny   message = relay not permitted
63
64 check_prdr:
65   accept local_parts = good
66   deny
67
68 check_data:
69   warn   message = X-acl-message-linecount: $message_linecount
70   accept
71
72 # ----- Routers -----
73
74 begin routers
75
76 to_server:
77   driver = accept
78   condition =   ${if !eq {SERVER}{server}}
79   transport =   remote_smtp${if eq {SRV}{dkim} {_dkim}}
80   errors_to =   ""
81
82 fail_remote_domains:
83   driver = redirect
84   domains = ! +local_domains
85   data = :fail: unrouteable mail domain "$domain"
86
87 localuser:
88   driver = accept
89   check_local_user
90   transport = local_delivery
91   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
92
93
94 # ----- Transports -----
95
96 begin transports
97
98 local_delivery:
99   driver = appendfile
100   delivery_date_add
101   envelope_to_add
102   file = DIR/test-mail/$local_part
103   create_file = DIR/test-mail
104   headers_add = "X-body-linecount: $body_linecount\n\
105                  X-message-linecount: $message_linecount\n\
106                  X-received-count: $received_count"
107   return_path_add
108
109 remote_smtp:
110   driver = smtp
111   hosts =       127.0.0.1
112   port =        PORT_S
113   hosts_try_fastopen = :
114 .ifdef _HAVE_TLS
115   tls_verify_certificates = DIR/aux-fixed/cert1
116   tls_verify_cert_hostnames =
117 .endif
118   allow_localhost
119   command_timeout = 2s
120   final_timeout = 2s
121
122 remote_smtp_dkim:
123   driver = smtp
124   hosts =       127.0.0.1
125   port =        PORT_S
126   hosts_try_fastopen = :
127 .ifdef _HAVE_TLS
128   tls_verify_certificates = DIR/aux-fixed/cert1
129   tls_verify_cert_hostnames =
130 .endif
131   allow_localhost
132   command_timeout = 2s
133   final_timeout = 2s
134
135 .ifdef _HAVE_DKIM
136 .ifdef SRV
137   dkim_domain =         test.ex
138   dkim_selector =       sel
139   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
140 .ifndef HEADERS_MAXSIZE
141   dkim_sign_headers =   LIST
142 .endif
143 .endif
144 .endif
145
146 # ----- Retry -----
147
148 begin retry
149 * * F,30m,5m;
150 # End