Testsuite: nail testcase to ipv4 to avoid output difference in non-6 build
[users/jgh/exim.git] / test / confs / 0480
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
10 host_lookup_order = bydns
11 spool_directory = DIR/spool
12 log_file_path = DIR/spool/log/SERVER%slog
13 gecos_pattern = ""
14 gecos_name = CALLER_NAME
15
16 # ----- Main settings -----
17
18 acl_smtp_rcpt = accept
19
20 smtp_active_hostname = ${if eq{$received_ip_address}{IP1}\
21                        {host.IP1}\
22                        {\
23                        ${if eq{$received_ip_address}{IP2}\
24                          {}\
25                          {\
26                          ${if eq{$received_ip_address}{IP3}\
27                            {${lookup{x}lsearch{/non/exist}}}\
28                            fail}\
29                          }}\
30                        }}
31
32
33 # ----- Routers -----
34
35 begin routers
36
37 r1:
38   driver = accept
39   headers_add = X-sah: $smtp_active_hostname
40   transport = t1
41
42
43 # ----- Transports -----
44
45 begin transports
46
47 t1:
48   driver = appendfile
49   file = DIR/test-mail/$local_part
50   user = CALLER
51
52
53 # End