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