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