Constification
[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 .ifdef _HAVE_REQTLS
17 tls_advertise_requiretls = :
18 .endif
19
20
21 # ----- Main settings -----
22
23 primary_hostname = testhost.test.ex
24 domainlist local_domains = @ : test.ex
25
26 acl_smtp_rcpt = check_recipient
27 acl_smtp_data_prdr = check_prdr
28 acl_smtp_data = check_data
29 trusted_users = CALLER
30 queue_only
31 smtp_receive_timeout = 2s
32
33 .ifdef _HAVE_DKIM
34 log_selector = +received_recipients +dkim_verbose
35 .else
36 log_selector = +received_recipients
37 .endif
38
39 .ifdef _OPT_MAIN_TLS_CERTIFICATE
40 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
41 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
42 .endif
43
44 ALLOW
45
46 # ----- ACL -----
47
48 begin acl
49
50 check_recipient:
51   accept hosts = :
52   accept domains = +local_domains
53   deny   message = relay not permitted
54
55 check_prdr:
56   accept local_parts = good
57   deny
58
59 check_data:
60   warn   message = X-acl-message-linecount: $message_linecount
61   accept
62
63 # ----- Routers -----
64
65 begin routers
66
67 to_server:
68   driver = accept
69   condition =   ${if !eq {SERVER}{server}}
70   transport =   remote_smtp${if eq {SRV}{dkim} {_dkim}}
71   errors_to =   ""
72
73 fail_remote_domains:
74   driver = redirect
75   domains = ! +local_domains
76   data = :fail: unrouteable mail domain "$domain"
77
78 localuser:
79   driver = accept
80   check_local_user
81   transport = local_delivery
82   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
83
84
85 # ----- Transports -----
86
87 begin transports
88
89 local_delivery:
90   driver = appendfile
91   delivery_date_add
92   envelope_to_add
93   file = DIR/test-mail/$local_part
94   headers_add = "X-body-linecount: $body_linecount\n\
95                  X-message-linecount: $message_linecount\n\
96                  X-received-count: $received_count"
97   return_path_add
98
99 remote_smtp:
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 remote_smtp_dkim:
108   driver = smtp
109   hosts =       127.0.0.1
110   port =        PORT_S
111   allow_localhost
112   command_timeout = 2s
113   final_timeout = 2s
114
115 .ifdef _HAVE_DKIM
116 .ifdef SRV
117   dkim_domain =         test.ex
118   dkim_selector =       sel
119   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
120 .ifndef HEADERS_MAXSIZE
121   dkim_sign_headers =   LIST
122 .endif
123 .endif
124 .endif
125
126 # ----- Retry -----
127
128 begin retry
129 * * F,30m,5m;
130 # End