Compilation warnings shushing
[users/jgh/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 log_selector = +received_recipients
30
31 .ifdef _OPT_MAIN_TLS_CERTIFICATE
32 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
33 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
34 .endif
35
36 ALLOW
37
38 # ----- ACL -----
39
40 begin acl
41
42 check_recipient:
43   accept hosts = :
44   accept domains = +local_domains
45   deny   message = relay not permitted
46
47 check_prdr:
48   accept local_parts = good
49   deny
50
51 check_data:
52   warn   message = X-acl-message-linecount: $message_linecount
53   accept
54
55 # ----- Routers -----
56
57 begin routers
58
59 to_server:
60   driver = accept
61   condition =   ${if !eq {SERVER}{server}}
62   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
63   errors_to =   ""
64
65 fail_remote_domains:
66   driver = redirect
67   domains = ! +local_domains
68   data = :fail: unrouteable mail domain "$domain"
69
70 localuser:
71   driver = accept
72   check_local_user
73   transport = local_delivery
74   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
75
76
77 # ----- Transports -----
78
79 begin transports
80
81 local_delivery:
82   driver = appendfile
83   delivery_date_add
84   envelope_to_add
85   file = DIR/test-mail/$local_part
86   headers_add = "X-body-linecount: $body_linecount\n\
87                  X-message-linecount: $message_linecount\n\
88                  X-received-count: $received_count"
89   return_path_add
90
91 remote_smtp:
92   driver = smtp
93   hosts =       127.0.0.1
94   port =        PORT_S
95   allow_localhost
96   command_timeout = 2s
97   final_timeout = 2s
98
99 remote_smtp_dkim:
100   driver = smtp
101   hosts =       127.0.0.1
102   port =        PORT_S
103   allow_localhost
104   command_timeout = 2s
105   final_timeout = 2s
106
107 .ifdef OPT
108   dkim_domain =         test.ex
109   dkim_selector =       sel
110   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
111 .ifndef HEADERS_MAXSIZE
112   dkim_sign_headers =   LIST
113 .endif
114 .endif
115
116 # ----- Retry -----
117
118 begin retry
119 * * F,30m,5m;
120 # End