typoes
[users/heiko/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 keep_environment =
11 host_lookup_order = bydns
12 spool_directory = DIR/spool
13 log_file_path = DIR/spool/log/SERVER%slog
14 gecos_pattern = ""
15 gecos_name = CALLER_NAME
16 tls_advertise_hosts =
17
18 # ----- Main settings -----
19
20 acl_smtp_rcpt = accept
21
22 smtp_active_hostname = ${if eq{$received_ip_address}{IP1}\
23                        {host.IP1}\
24                        {\
25                        ${if eq{$received_ip_address}{IP2}\
26                          {}\
27                          {\
28                          ${if eq{$received_ip_address}{IP3}\
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