Commit | Line | Data |
---|---|---|
a39bd74d JB |
1 | # Exim test configuration 0603 |
2 | # Add several messages going to the same location | |
3 | # And change smtp output based on senders domain | |
4 | ||
5 | hostlist loopback = <; 127.0.0.0/8 ; 0.0.0.0 ; ::1 ; 0000:0000:0000:0000:0000:ffff | |
6 | untrusted_set_sender = * | |
7 | ||
8 | SERVER = | |
9 | ||
d4dc049f JH |
10 | .include DIR/aux-var/std_conf_prefix |
11 | ||
a39bd74d | 12 | rfc1413_query_timeout = 0s |
a39bd74d | 13 | log_selector = +sender_on_delivery |
a39bd74d JB |
14 | |
15 | # ----- Main settings ----- | |
16 | ||
17 | acl_smtp_rcpt = accept | |
18 | ||
19 | queue_only | |
20 | queue_run_in_order | |
21 | ||
22 | # ----- Routers ----- | |
23 | ||
24 | begin routers | |
25 | ||
26 | client: | |
27 | driver = accept | |
28 | condition = ${if eq {SERVER}{server}{no}{yes}} | |
29 | transport = send_to_server | |
30 | ||
31 | server: | |
32 | driver = accept | |
33 | transport = send_to_server | |
34 | ||
35 | ||
36 | # ----- Transports ----- | |
37 | ||
38 | begin transports | |
39 | ||
40 | send_to_server: | |
41 | driver = smtp | |
42 | connection_max_messages = 0 | |
43 | allow_localhost | |
44 | hosts = 127.0.0.1 | |
45 | port = PORT_D | |
78ca7fd5 JH |
46 | # assumes that HOSTIPV4 can send to 127.0.0.1 |
47 | interface = ${if eq {$sender_address_domain}{dustybelt.tld} {127.0.0.1}{HOSTIPV4}} | |
a39bd74d JB |
48 | |
49 | # ----- Retry ----- | |
50 | ||
51 | begin retry | |
52 | ||
53 | * * F,5d,10s | |
54 | ||
55 | # End | |
56 |