Testsuite: 2091,5403 independent of calling user
[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 .include DIR/aux-var/std_conf_prefix
10
11
12 # ----- Main settings -----
13
14 acl_smtp_rcpt = accept
15
16 smtp_active_hostname = ${if eq{$received_ip_address}{IP1}\
17                        {host.IP1}\
18                        {\
19                        ${if eq{$received_ip_address}{IP2}\
20                          {}\
21                          {\
22                          ${if eq{$received_ip_address}{IP3}\
23                            {${lookup{x}lsearch{/non/exist}}}\
24                            fail}\
25                          }}\
26                        }}
27
28
29 # ----- Routers -----
30
31 begin routers
32
33 r1:
34   driver = accept
35   headers_add = X-sah: $smtp_active_hostname
36   transport = t1
37
38
39 # ----- Transports -----
40
41 begin transports
42
43 t1:
44   driver = appendfile
45   file = DIR/test-mail/$local_part
46   user = CALLER
47
48
49 # End