70ec647d009219414c8193b65d14a6b4d3904b42
[users/heiko/exim.git] / test / confs / 5403
1 # Exim test configuration 5403
2
3 exim_path = EXIM_PATH
4 keep_environment =
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11 tls_advertise_hosts =
12
13 log_selector = +received_recipients
14
15 # ----- Main settings -----
16
17 domainlist local_domains = test.ex : *.test.ex
18
19 acl_smtp_rcpt = ar
20
21
22 # ----- ACLs -----
23
24 begin acl
25
26 ar:
27   warn  control =       cutthrough_delivery
28         logwrite =      rcpt for $local_part@$domain
29   warn  condition =     ${if eq {verify}{$local_part}}
30         verify =        recipient/callout=use_sender
31   accept
32
33 # ----- Routers -----
34
35 begin routers
36
37 dns:
38   driver = dnslookup
39   domains = localhost.test.ex : localhost4.test.ex : thishost.test.ex
40   self = send
41   transport = smtp
42
43 all:
44   driver = manualroute
45   domains = ! +local_domains
46   route_list = special.com HOSTIPV4 ; * 127.0.0.1
47   self = send
48   transport = ${if eq {special_tpt}{$local_part} {smtp2}{smtp}}
49   headers_remove = X-hdr-rtr
50   headers_add =    X-hdr-rtr-new: $h_X-hdr-rtr:+++
51   no_more
52
53
54 # ----- Transports -----
55
56 begin transports
57
58 smtp:
59   driver = smtp
60   interface = HOSTIPV4
61   port = PORT_S
62   headers_add =  ${if def:h_X-hdr-rtr {X-hdr-tpt-new: new} {}}
63
64 smtp2:
65   driver = smtp
66   interface = HOSTIPV4
67   port = PORT_S
68
69
70 # End