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