Testsuite: make 4560 more testhost-name independent
[users/jgh/exim.git] / test / confs / 4560
1 # Exim test configuration 4560
2
3 SERVER=
4
5 .include DIR/aux-var/std_conf_prefix
6
7 primary_hostname = test.ex
8
9 # ----- Main settings -----
10
11 acl_smtp_rcpt = accept
12 acl_smtp_data = check_data
13
14 log_selector = +received_recipients +dkim_verbose
15 queue_only
16
17 # ----- ACL -----
18 begin acl
19
20 check_data:
21   warn  !verify =       arc
22 .ifdef OPTION
23   accept
24 .else
25   accept add_header =   :at_start:${authresults {$primary_hostname}}
26 .endif
27   
28 # ----- Routers -----
29
30 begin routers
31
32 d1:
33   driver = accept
34   local_parts = ^a
35   transport = tfile
36
37 r2:
38   driver =      redirect
39   local_parts = ^m
40   data =        ${substr_1:$local_part}@$domain
41   redirect_router = mlist
42
43 redir:
44   driver =      redirect
45   data =        ${substr_1:$local_part}@$domain
46   redirect_router = fwd
47
48 fwd:
49   driver =      accept
50   transport =   tsmtp
51
52 mlist:
53   driver =      accept
54   transport =   tmlist
55
56 # ----- Transports -----
57
58 begin transports
59
60 tfile:
61   driver =      appendfile
62   file =        DIR/test-mail/$local_part
63   user =        CALLER
64
65 tsmtp:
66   driver =      smtp
67   hosts =       127.0.0.1
68   port =        PORT_D
69   allow_localhost
70 .ifndef OPTION
71   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
72 .endif
73
74 tmlist:
75   driver =      smtp
76   hosts =       127.0.0.1
77   port =        PORT_D
78   allow_localhost
79   transport_filter =    /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
80 .ifndef OPTION
81   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
82 .endif
83
84 # End