Testsuite: track newer GnuTLS behaviour
[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
17
18 # ----- Main settings -----
19
20 primary_hostname = testhost.test.ex
21 domainlist local_domains = @ : test.ex
22
23 acl_smtp_rcpt = check_recipient
24 acl_smtp_data_prdr = check_prdr
25 acl_smtp_data = check_data
26 trusted_users = CALLER
27 queue_only
28 smtp_receive_timeout = 2s
29
30 .ifdef _HAVE_DKIM
31 log_selector = +received_recipients +dkim_verbose
32 .else
33 log_selector = +received_recipients
34 .endif
35
36 .ifdef _OPT_MAIN_TLS_CERTIFICATE
37 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
38 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
39 .endif
40
41 ALLOW
42
43 # ----- ACL -----
44
45 begin acl
46
47 check_recipient:
48   accept hosts = :
49   accept domains = +local_domains
50   deny   message = relay not permitted
51
52 check_prdr:
53   accept local_parts = good
54   deny
55
56 check_data:
57   warn   message = X-acl-message-linecount: $message_linecount
58   accept
59
60 # ----- Routers -----
61
62 begin routers
63
64 to_server:
65   driver = accept
66   condition =   ${if !eq {SERVER}{server}}
67   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
68   errors_to =   ""
69
70 fail_remote_domains:
71   driver = redirect
72   domains = ! +local_domains
73   data = :fail: unrouteable mail domain "$domain"
74
75 localuser:
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
84 begin transports
85
86 local_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
96 remote_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
104 remote_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
112 .ifdef OPT
113   dkim_domain =         test.ex
114   dkim_selector =       sel
115   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
116 .ifndef HEADERS_MAXSIZE
117   dkim_sign_headers =   LIST
118 .endif
119 .endif
120
121 # ----- Retry -----
122
123 begin retry
124 * * F,30m,5m;
125 # End