Don't set $sender_host_name if forward lookup of name obtained from
[users/jgh/exim.git] / test / confs / 0495
1 # Exim test configuration 0495
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 rfc1413_query_timeout = 0s
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
9 gecos_pattern = ""
10 gecos_name = CALLER_NAME
11
12 # ----- Main settings -----
13
14 acl_smtp_rcpt = check_rcpt
15 mua_wrapper = TRUE
16 trusted_users = CALLER
17
18 # These settings should be ignored
19
20 queue_only
21 queue_smtp_domains = *
22 deliver_drop_privilege = FALSE
23 remote_max_parallel = 5
24
25
26 # ----- ACL -----
27
28 begin acl
29
30 # The controls will be ignored
31
32 check_rcpt:
33   accept    control = queue_only
34             control = freeze
35
36
37 # ----- Routers -----
38
39 begin routers
40
41 r1:
42   driver = redirect
43   data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}}
44   file_transport = t3
45   allow_fail
46   allow_defer
47
48 r2:
49   driver = accept
50   local_parts = otherhost
51   transport = t2
52
53 r3:
54   driver = accept
55   local_parts = ^badport
56   transport = t4
57
58 r9:
59   driver = accept
60   transport = t1
61   headers_add = ${if eq{$local_part}{addheader}{Added: text}}
62
63
64 # ----- Transports -----
65
66 begin transports
67
68 t1:
69   driver = smtp
70   hosts = 127.0.0.1 : HOSTIPV4
71   port = PORT_S
72   allow_localhost
73   command_timeout = 1s
74
75 t2:
76   driver = smtp
77   hosts = V4NET.9.8.7
78   port = PORT_S
79
80 t3:
81   driver = appendfile
82   file = DIR/test-mail/$local_part
83   user = CALLER
84
85 t4:
86   driver = smtp
87   hosts = V4NET.10.10.10
88   port = nonexistent
89
90 # End