Merge ssh://tahini.csx.cam.ac.uk/home/git/exim
[users/heiko/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
59 local_delivery:
60   driver = pipe
61   check_string = "From "
62   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
63   escape_string = ">From "
64   user = CALLER
65   current_directory = /
66
67 bsmtp_local_delivery:
68   driver = pipe
69   use_bsmtp
70   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
71   delivery_date_add
72   envelope_to_add
73   return_path_add
74   user = CALLER
75   current_directory = /
76
77 filtered_local_delivery:
78   driver = pipe
79   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
80   delivery_date_add
81   envelope_to_add
82   return_path_add
83   transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat"
84   user = CALLER
85   current_directory = /
86
87 mmdf_local_delivery:
88   driver = pipe
89   check_string = "\1\1\1\1\n"
90   command = /bin/sh -c 'cat >>DIR/test-mail/$local_part'
91   escape_string = "\1\1\1\1 \n"
92   message_prefix = "\1\1\1\1\n"
93   message_suffix = "\1\1\1\1\n"
94   user = CALLER
95   current_directory = /
96
97 # End