Commit | Line | Data |
---|---|---|
afda344b PH |
1 | # Exim test configuration 0480 |
2 | ||
3 | IP1=V4NET.0.0.1 | |
4 | IP2=V4NET.0.0.2 | |
5 | IP3=V4NET.0.0.3 | |
6 | ||
7 | SERVER= | |
8 | ||
9 | exim_path = EXIM_PATH | |
bc3c7bb7 | 10 | keep_environment = |
afda344b | 11 | host_lookup_order = bydns |
afda344b PH |
12 | spool_directory = DIR/spool |
13 | log_file_path = DIR/spool/log/SERVER%slog | |
14 | gecos_pattern = "" | |
15 | gecos_name = CALLER_NAME | |
23f3dc67 | 16 | tls_advertise_hosts = |
afda344b PH |
17 | |
18 | # ----- Main settings ----- | |
19 | ||
20 | acl_smtp_rcpt = accept | |
21 | ||
194cc0e4 | 22 | smtp_active_hostname = ${if eq{$received_ip_address}{IP1}\ |
afda344b PH |
23 | {host.IP1}\ |
24 | {\ | |
194cc0e4 | 25 | ${if eq{$received_ip_address}{IP2}\ |
afda344b PH |
26 | {}\ |
27 | {\ | |
194cc0e4 | 28 | ${if eq{$received_ip_address}{IP3}\ |
afda344b PH |
29 | {${lookup{x}lsearch{/non/exist}}}\ |
30 | fail}\ | |
31 | }}\ | |
32 | }} | |
33 | ||
34 | ||
35 | # ----- Routers ----- | |
36 | ||
37 | begin routers | |
38 | ||
39 | r1: | |
40 | driver = accept | |
41 | headers_add = X-sah: $smtp_active_hostname | |
42 | transport = t1 | |
43 | ||
44 | ||
45 | # ----- Transports ----- | |
46 | ||
47 | begin transports | |
48 | ||
49 | t1: | |
50 | driver = appendfile | |
51 | file = DIR/test-mail/$local_part | |
52 | user = CALLER | |
53 | ||
54 | ||
55 | # End |