recipient verify callout
[users/jgh/exim.git] / test / confs / 4201
1 # Exim test configuration 4201
2 # SMTPUTF8 handling
3
4 OPTION = *
5 CONTROL =
6
7 exim_path = EXIM_PATH
8 host_lookup_order = bydns
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/%slog
11 gecos_pattern = ""
12 gecos_name = CALLER_NAME
13
14 # ----- Main settings -----
15
16 domainlist local_domains = test.ex : cname
17
18 acl_smtp_rcpt = check_recipient
19 acl_not_smtp = non_smtp
20
21 trusted_users = CALLER
22 log_selector = +received_recipients +sender_on_delivery
23
24 .ifdef SERVER
25 queue_only
26 queue_run_in_order
27 .endif
28
29 smtputf8_advertise_hosts = OPTION
30
31
32 # ----- ACL -----
33
34 begin acl
35
36
37 .ifdef SERVER
38
39 check_recipient:
40   accept hosts = :
41   accept domains = +local_domains
42          local_parts = ^user.*\$
43   deny   message = relay not permitted
44
45 .else
46
47 sub:
48 .ifdef CONTROL
49   require CONTROL
50 .endif
51   accept
52
53 check_recipient:
54   accept domains = *
55          acl = sub
56
57 non_smtp:
58   accept senders = :
59          control = queue_only
60   accept
61
62 .endif
63
64 # ----- Routers -----
65
66 begin routers
67
68 .ifdef SERVER
69
70 fail_remote_domains:
71   driver = redirect
72   domains = ! +local_domains
73   data = :fail: unrouteable mail domain "$domain"
74
75 bounces:
76   driver = redirect
77   condition = ${if eq {} {$sender_address}}
78   data = DIR/test-mail/$local_part
79   file_transport = local_delivery
80
81 localuser:
82   driver = redirect
83   data = :blackhole:
84
85 .else
86
87 bounces:
88   driver = redirect
89   domains = *.local
90   data = DIR/test-mail/$local_part
91   file_transport = local_delivery
92
93 rmt:
94   driver = manualroute
95   domains = +local_domains
96   route_data = <;[127.0.0.1]:PORT_D
97   transport = rmt_smtp
98   self = send
99
100 .endif
101
102 # ----- Transports -----
103
104 begin transports
105
106 local_delivery:
107   driver = appendfile
108   user = CALLER
109   delivery_date_add
110   envelope_to_add
111   file = DIR/test-mail/$local_part
112   headers_add = "X-body-linecount: $body_linecount\n\
113                  X-message-linecount: $message_linecount\n\
114                  X-received-count: $received_count"
115   return_path_add
116
117 rmt_smtp:
118   driver = smtp
119
120 # End