DSN: tescase for ESMTP DSN extension, RCPT options
[users/jgh/exim.git] / test / confs / 0618
1 # Exim test configuration 0618
2
3 SERVER =
4
5 .include DIR/aux-var/std_conf_prefix
6
7 primary_hostname = myhost.test.ex
8
9 # ----- Main settings -----
10
11 .ifdef OPT
12 dsn_advertise_hosts = *
13 .endif
14 delay_warning = 3s : 24h
15
16 accept_8bitmime = false
17 pipelining_advertise_hosts = :
18
19 trusted_users = CALLER
20 acl_smtp_rcpt = rcpt
21
22 log_selector = +received_recipients
23 queue_only
24 queue_run_in_order
25
26
27 event_action = ${acl {ev_log}}
28
29 #
30
31 begin acl
32
33 ev_log:
34   accept logwrite = event $event_name
35
36 rcpt:
37   accept hosts =        HOSTIPV4
38
39   deny  local_parts =   rmt_reject
40   defer local_parts =   rmt_defer
41   accept
42
43 # ----- Routers -----
44
45 begin routers
46
47 r1:
48   driver =      accept
49   condition =   ${if eq {127.0.0.1}{$sender_host_address}}
50   transport =   tofile
51
52 r2:
53   driver =      manualroute
54   local_parts = ^rmt_.*
55   route_list =  * 127.0.0.1::PORT_D
56   self =        send
57   transport =   smtp
58
59 r3:
60   driver =      manualroute
61   local_parts = deferred
62   route_list =  * 127.0.0.1::PORT_S
63   self =        send
64   transport =   bad_tpt
65
66 # ----- Transports -----
67
68 begin transports
69
70 smtp:
71   driver =      smtp
72   event_action = ${acl {ev_log}}
73
74 bad_tpt:
75   driver =      smtp
76   connect_timeout = 1s
77   event_action = ${acl {ev_log}}
78
79 tofile:
80   driver = appendfile
81   file = DIR/test-mail/$local_part
82   user = CALLER
83   event_action = ${acl {ev_log}}
84
85 begin retry
86
87 *       *       F,1m,3s
88 # End