smtp output
[exim.git] / test / confs / 4201
1 # Exim test configuration 4201
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 = test.ex
13
14 acl_smtp_rcpt = check_recipient
15 trusted_users = CALLER
16 log_selector = +received_recipients
17
18 .ifdef SERVER
19 queue_only
20 queue_run_in_order
21 .endif
22
23 smtputf8_advertise_hosts = *
24
25
26 # ----- ACL -----
27
28 begin acl
29
30 check_recipient:
31   accept hosts = :
32   accept domains = +local_domains
33   deny   message = relay not permitted
34
35 # ----- Routers -----
36
37 begin routers
38
39 .ifdef SERVER
40
41 fail_remote_domains:
42   driver = redirect
43   domains = ! +local_domains
44   data = :fail: unrouteable mail domain "$domain"
45
46 localuser:
47   driver = redirect
48   data = :blackhole:
49
50 .else
51
52 rmt:
53   driver = manualroute
54   route_data = <;[127.0.0.1]:PORT_D
55   transport = rmt_smtp
56   self = send
57
58 .endif
59
60 # ----- Transports -----
61
62 begin transports
63
64 local_delivery:
65   driver = appendfile
66   delivery_date_add
67   envelope_to_add
68   file = DIR/test-mail/$local_part
69   headers_add = "X-body-linecount: $body_linecount\n\
70                  X-message-linecount: $message_linecount\n\
71                  X-received-count: $received_count"
72   return_path_add
73
74 rmt_smtp:
75   driver = smtp
76
77 # End