Fix %D string expansion to not use millisec
[users/jgh/exim.git] / test / confs / 0906
1 # Exim test configuration 0906
2 SERVER=
3
4 exim_path = EXIM_PATH
5 keep_environment =
6 host_lookup_order = bydns
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/SERVER%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11 chunking_advertise_hosts = *
12 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
13
14 # ----- Main settings -----
15
16 spool_wireformat = true
17
18 primary_hostname = testhost.test.ex
19 domainlist local_domains = @ : test.ex
20
21 acl_smtp_rcpt = acl_r
22
23 .ifdef _HAVE_DKIM
24 log_selector = +received_recipients +dkim_verbose
25 .else
26 log_selector = +received_recipients
27 .endif
28
29
30 .ifdef _OPT_MAIN_TLS_CERTIFICATE
31 tls_certificate = DIR/aux-fixed/cert1
32 tls_privatekey = DIR/aux-fixed/cert1
33 .endif
34
35 queue_run_in_order = true
36
37 # ----- ACL -----
38
39 begin acl
40 acl_r:
41  accept condition = ${if != {$received_port}{PORT_S}}
42         control = queue_only
43  accept
44
45 # ----- Routers -----
46
47 begin routers
48
49 to_server:
50   driver = accept
51   condition =   ${if = {$received_port}{PORT_S}}
52   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
53   errors_to =   ""
54
55 fail_remote_domains:
56   driver = redirect
57   domains = ! +local_domains
58   data = :fail: unrouteable mail domain "$domain"
59
60 localuser:
61   driver = accept
62   transport = local_delivery
63
64
65 # ----- Transports -----
66
67 begin transports
68
69 local_delivery:
70   driver = appendfile
71   file = DIR/test-mail/$local_part
72   headers_add = "X-body-linecount: $body_linecount\n\
73                  X-message-linecount: $message_linecount\n\
74                  X-received-count: $received_count"
75   return_path_add
76   user = CALLER
77
78 remote_smtp:
79   driver = smtp
80   hosts =       127.0.0.1
81   port =        PORT_D
82   allow_localhost
83
84 remote_smtp_dkim:
85   driver = smtp
86   hosts =       127.0.0.1
87   port =        PORT_D
88   allow_localhost
89
90 .ifdef OPT
91   dkim_domain =         test.ex
92   dkim_selector =       sel
93   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
94 .ifndef HEADERS_MAXSIZE
95   dkim_sign_headers =   LIST
96 .endif
97 .endif
98
99 # ----- Retry -----
100
101 begin retry
102 * * F,30m,5m;
103 # End