1 # Exim test configuration 0603
2 # Add several messages going to the same location
3 # And change smtp output based on senders domain
5 hostlist loopback = <; 127.0.0.0/8 ; 0.0.0.0 ; ::1 ; 0000:0000:0000:0000:0000:ffff
6 untrusted_set_sender = *
12 host_lookup_order = bydns
13 #primary_hostname = myhost.test.ex
14 rfc1413_query_timeout = 0s
15 spool_directory = DIR/spool
16 log_file_path = DIR/spool/log/SERVER%slog
17 log_selector = +sender_on_delivery
19 gecos_name = CALLER_NAME
22 # ----- Main settings -----
24 acl_smtp_rcpt = accept
35 condition = ${if eq {SERVER}{server}{no}{yes}}
36 transport = send_to_server
40 transport = send_to_server
43 # ----- Transports -----
49 connection_max_messages = 0
53 # assumes that HOSTIPV4 can send to 127.0.0.1
54 interface = ${if eq {$sender_address_domain}{dustybelt.tld} {127.0.0.1}{HOSTIPV4}}