fdatasync the spool data file
[exim.git] / test / confs / 4690
1 # Exim test configuration 4690
2
3 SERVER=
4
5 exim_path = EXIM_PATH
6 keep_environment =
7 host_lookup_order = bydns
8 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/SERVER%slog
10 gecos_pattern = ""
11 gecos_name = CALLER_NAME
12 chunking_advertise_hosts = *
13 tls_advertise_hosts =
14 .ifdef _HAVE_PIPE_CONNECT
15 pipelining_connect_advertise_hosts =
16 .endif
17
18 primary_hostname = test.ex
19
20 # ----- Main settings -----
21
22 dmarc_tld_file = DIR/aux-fixed/TESTNUM.tldfile
23 dmarc_history_file = DIR/tmp/TESTNUM.hist.dmarc
24
25 acl_smtp_rcpt = accept
26 acl_smtp_data = check_data
27
28 log_selector = +received_recipients +dkim_verbose
29 queue_only
30 queue_run_in_order
31
32 # ----- ACL -----
33 begin acl
34
35 check_data:
36   warn  !verify =       arc
37
38   warn  logwrite =      arc_state:      <$arc_state>
39         logwrite =      domains:        <$arc_domains>
40         logwrite =      arc_oldest_pass <$arc_oldest_pass>
41         logwrite =      reason:         <$arc_state_reason>
42         logwrite =      lh_A-R:         <$lh_Authentication-Results:>
43         logwrite =      lh-AAR:         <$lh_ARC-Authentication-Results:>
44         logwrite =      oldest-p-AAR:   <${reduce {$lh_ARC-Authentication-Results:} \
45                                                 {} \
46                                                 {${if = {$arc_oldest_pass} \
47                                                         {${extract {i}{${extract {1}{;}{$item}}}}} \
48                                                         {$item} {$value}}} \
49                                         }>
50
51   require       spf =           pass : !pass
52                 dmarc_status =  none : !none
53                 logwrite =      dmarc_status <$dmarc_status>
54                 logwrite =      dmarc_status_text <$dmarc_status_text>
55                 logwrite =      dmarc_used_domain <$dmarc_used_domain>
56                 logwrite =      dmarc_domain_policy <$dmarc_domain_policy>
57                 set acl_m0 =    ${authresults {$primary_hostname}}
58                 logwrite =      $acl_m0
59
60   accept add_header =   :at_start:$acl_m0
61   
62 # ----- Routers -----
63
64 begin routers
65
66 d1:
67   driver = accept
68   local_parts = ^a
69   transport = tfile
70
71 r2:
72   driver =      redirect
73   local_parts = ^m
74   data =        ${substr_1:$local_part}@$domain
75   redirect_router = mlist
76
77 redir:
78   driver =      redirect
79   data =        ${substr_1:$local_part}@$domain
80   redirect_router = fwd
81
82 fwd:
83   driver =      accept
84   transport =   tsmtp
85
86 mlist:
87   driver =      accept
88   transport =   tmlist
89
90 # ----- Transports -----
91
92 begin transports
93
94 tfile:
95   driver =      appendfile
96   file =        DIR/test-mail/$local_part
97   create_file = DIR/test-mail
98   user =        CALLER
99
100 tsmtp:
101   driver =      smtp
102   hosts =       127.0.0.1
103   port =        PORT_D
104   allow_localhost
105   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
106
107 tmlist:
108   driver =      smtp
109   hosts =       127.0.0.1
110   port =        PORT_D
111   allow_localhost
112   transport_filter =    /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
113   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
114
115 # End