2c47966eaa3deeedf7655f515427cf025c5b2d64
[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 log_selector = +received_recipients
23
24 .ifdef _OPT_MAIN_TLS_CERTIFICATE
25 tls_certificate = DIR/aux-fixed/cert1
26 tls_privatekey = DIR/aux-fixed/cert1
27 .endif
28
29 # ----- ACL -----
30
31 begin acl
32 acl_r:
33  accept condition = ${if != {$received_port}{PORT_S}}
34         control = queue_only
35  accept
36
37 # ----- Routers -----
38
39 begin routers
40
41 to_server:
42   driver = accept
43   condition =   ${if = {$received_port}{PORT_S}}
44   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
45   errors_to =   ""
46
47 fail_remote_domains:
48   driver = redirect
49   domains = ! +local_domains
50   data = :fail: unrouteable mail domain "$domain"
51
52 localuser:
53   driver = accept
54   transport = local_delivery
55
56
57 # ----- Transports -----
58
59 begin transports
60
61 local_delivery:
62   driver = appendfile
63   file = DIR/test-mail/$local_part
64   headers_add = "X-body-linecount: $body_linecount\n\
65                  X-message-linecount: $message_linecount\n\
66                  X-received-count: $received_count"
67   return_path_add
68   user = CALLER
69
70 remote_smtp:
71   driver = smtp
72   hosts =       127.0.0.1
73   port =        PORT_D
74   allow_localhost
75
76 remote_smtp_dkim:
77   driver = smtp
78   hosts =       127.0.0.1
79   port =        PORT_D
80   allow_localhost
81
82 .ifdef OPT
83   dkim_domain =         test.ex
84   dkim_selector =       sel
85   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
86 .ifndef HEADERS_MAXSIZE
87   dkim_sign_headers =   LIST
88 .endif
89 .endif
90
91 # ----- Retry -----
92
93 begin retry
94 * * F,30m,5m;
95 # End