427669c4bf1e29a61cb9c9a2c0c37659e5b8faaa
[exim.git] / test / confs / 0900
1 # Exim test configuration 0900
2 SERVER=
3 X=
4 Y=
5 OPT=
6 ALLOW=
7
8 exim_path = EXIM_PATH
9 keep_environment =
10 host_lookup_order = bydns
11 spool_directory = DIR/spool
12 log_file_path = DIR/spool/log/SERVER%slog
13 gecos_pattern = ""
14 gecos_name = CALLER_NAME
15 chunking_advertise_hosts = *
16 tls_advertise_hosts = ${if eq {Y}{tls} {*}}
17
18
19 # ----- Main settings -----
20
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 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
32 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
33
34 ALLOW
35
36 # ----- ACL -----
37
38 begin acl
39
40 check_recipient:
41   accept hosts = :
42   accept domains = +local_domains
43   deny   message = relay not permitted
44
45 check_prdr:
46   accept local_parts = good
47   deny
48
49 check_data:
50   warn   message = X-acl-message-linecount: $message_linecount
51   accept
52
53
54 # ----- Routers -----
55
56 begin routers
57
58 to_server:
59   driver = accept
60   condition =   ${if !eq {SERVER}{server}}
61   transport =   remote_smtp${if eq {X}{dkim} {_dkim}}
62   errors_to =   ""
63
64 fail_remote_domains:
65   driver = redirect
66   domains = ! +local_domains
67   data = :fail: unrouteable mail domain "$domain"
68
69 localuser:
70   driver = accept
71   check_local_user
72   transport = local_delivery
73   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
74
75
76 # ----- Transports -----
77
78 begin transports
79
80 local_delivery:
81   driver = appendfile
82   delivery_date_add
83   envelope_to_add
84   file = DIR/test-mail/$local_part
85   headers_add = "X-body-linecount: $body_linecount\n\
86                  X-message-linecount: $message_linecount\n\
87                  X-received-count: $received_count"
88   return_path_add
89
90 remote_smtp:
91   driver = smtp
92   hosts =       127.0.0.1
93   port =        PORT_S
94   allow_localhost
95   command_timeout = 2s
96   final_timeout = 2s
97
98 remote_smtp_dkim:
99   driver = smtp
100   hosts =       127.0.0.1
101   port =        PORT_S
102   allow_localhost
103   command_timeout = 2s
104   final_timeout = 2s
105
106   dkim_domain =         test.ex
107   dkim_selector =       sel
108   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
109 .ifndef HEADERS_MAXSIZE
110   dkim_sign_headers =   OPT
111 .endif
112
113 # ----- Retry -----
114
115 begin retry
116 * * F,30m,5m;
117 # End