Testsuite: Use explicit interface for send to localhost
[exim.git] / test / confs / 0101
1 # Exim test configuration 0101
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 rfc1413_query_timeout = 0s
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10
11 # ----- Main settings -----
12
13 domainlist local_domains = test.ex
14
15 qualify_domain = test.ex
16
17
18 # ----- Routers -----
19
20 begin routers
21
22 all:
23   driver = manualroute
24   domains = ! +local_domains
25   route_list = * 127.0.0.1 byname
26   self = send
27   transport = smtp
28   no_more
29
30 mmdf_localuser:
31   driver = accept
32   local_part_prefix = mmdf-
33   transport = mmdf_local_delivery
34
35 filtered_localuser:
36   driver = accept
37   local_part_prefix = filter-
38   transport = filtered_local_delivery
39
40 bsmtp_localuser:
41   driver = accept
42   local_parts = userz
43   transport = bsmtp_local_delivery
44
45 localuser:
46   driver = accept
47   local_parts = userx
48   transport = local_delivery
49
50
51 # ----- Transports -----
52
53 begin transports
54
55 smtp:
56   driver = smtp
57   port = PORT_S
58   interface = 127.0.0.1
59
60 local_delivery:
61   driver = pipe
62   check_string = "From "
63   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
64   escape_string = ">From "
65   user = CALLER
66   current_directory = /
67
68 bsmtp_local_delivery:
69   driver = pipe
70   use_bsmtp
71   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
72   delivery_date_add
73   envelope_to_add
74   return_path_add
75   user = CALLER
76   current_directory = /
77
78 filtered_local_delivery:
79   driver = pipe
80   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
81   delivery_date_add
82   envelope_to_add
83   return_path_add
84   transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat"
85   user = CALLER
86   current_directory = /
87
88 mmdf_local_delivery:
89   driver = pipe
90   check_string = "\1\1\1\1\n"
91   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
92   escape_string = "\1\1\1\1 \n"
93   message_prefix = "\1\1\1\1\n"
94   message_suffix = "\1\1\1\1\n"
95   user = CALLER
96   current_directory = /
97
98 # End