Callback into smtp transport for BDAT commands
[users/jgh/exim.git] / test / confs / 0900
1 # Exim test configuration 0900
2
3 exim_path = EXIM_PATH
4 keep_environment =
5 host_lookup_order = bydns
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/SERVER%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10 chunking_advertise_hosts = *
11 tls_advertise_hosts =
12
13
14 # ----- Main settings -----
15
16 domainlist local_domains = @
17
18 acl_smtp_rcpt = check_recipient
19 acl_smtp_data = check_data
20 message_id_header_domain = ${if eq{0}{0}{some.domain}}
21 message_id_header_text = ${if eq{0}{0}{a@b[c]}}
22 trusted_users = CALLER
23 queue_only
24 smtp_receive_timeout = 2s
25
26
27 # ----- ACL -----
28
29 begin acl
30
31 check_recipient:
32   accept hosts = :
33   accept domains = +local_domains
34   deny   message = relay not permitted
35
36 check_data:
37   warn   message = X-acl-message-linecount: $message_linecount
38   accept
39
40
41 # ----- Routers -----
42
43 begin routers
44
45 fail_remote_domains:
46   driver = redirect
47   domains = ! +local_domains
48   data = :fail: unrouteable mail domain "$domain"
49
50 localuser:
51   driver = accept
52   check_local_user
53   transport = local_delivery
54   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
55
56
57 # ----- Transports -----
58
59 begin transports
60
61 local_delivery:
62   driver = appendfile
63   delivery_date_add
64   envelope_to_add
65   file = DIR/test-mail/$local_part
66   headers_add = "X-body-linecount: $body_linecount\n\
67                  X-message-linecount: $message_linecount\n\
68                  X-received-count: $received_count"
69   return_path_add
70
71 # End