DMARC: add variables for spf/dkim alignment results. Bug 3119
[exim.git] / test / confs / 0901
1 # Exim test configuration 0901
2 SERVER=
3 SRV=
4 LIST=
5 ALLOW=
6
7 exim_path = EXIM_PATH
8 keep_environment =
9 host_lookup_order = bydns
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14 chunking_advertise_hosts = *
15 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
16
17 .ifdef _HAVE_DMARC
18 dmarc_tld_file =
19 .endif
20 .ifdef _OPT_MAIN_LIMITS_ADVERTISE_HOSTS
21 limits_advertise_hosts = !*
22 .endif
23
24 pipelining_advertise_hosts = :
25
26 # ----- Main settings -----
27
28 primary_hostname = testhost.test.ex
29 domainlist local_domains = @ : test.ex
30
31 acl_smtp_rcpt = check_recipient
32 .ifdef _HAVE_PRDR
33 acl_smtp_data_prdr = check_prdr
34 .endif
35 acl_smtp_data = check_data
36 trusted_users = CALLER
37 queue_only
38 smtp_receive_timeout = 2s
39 log_selector = +received_recipients
40
41 .ifdef _OPT_MAIN_TLS_CERTIFICATE
42 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
43 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
44 .endif
45
46 ALLOW
47
48 # ----- ACL -----
49
50 begin acl
51
52 check_recipient:
53   accept hosts = :
54   accept domains = +local_domains
55   deny   message = relay not permitted
56
57 check_prdr:
58   accept local_parts = good
59   deny
60
61 check_data:
62   warn   message = X-acl-message-linecount: $message_linecount
63   accept
64
65 # ----- Routers -----
66
67 begin routers
68
69 to_server:
70   driver = accept
71   condition =   ${if !eq {SERVER}{server}}
72   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
73   errors_to =   ""
74
75 fail_remote_domains:
76   driver = redirect
77   domains = ! +local_domains
78   data = :fail: unrouteable mail domain "$domain"
79
80 localuser:
81   driver = accept
82   check_local_user
83   transport = local_delivery
84   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
85
86
87 # ----- Transports -----
88
89 begin transports
90
91 local_delivery:
92   driver = appendfile
93   delivery_date_add
94   envelope_to_add
95   file = DIR/test-mail/$local_part
96   create_file = DIR/test-mail
97   headers_add = "X-body-linecount: $body_linecount\n\
98                  X-message-linecount: $message_linecount\n\
99                  X-received-count: $received_count"
100   return_path_add
101
102 remote_smtp:
103   driver = smtp
104   hosts =       127.0.0.1
105   port =        PORT_S
106   hosts_try_fastopen =  :
107   allow_localhost
108   command_timeout = 2s
109   final_timeout = 2s
110
111 remote_smtp_dkim:
112   driver = smtp
113   hosts =       127.0.0.1
114   port =        PORT_S
115   hosts_try_fastopen =  :
116   allow_localhost
117   command_timeout = 2s
118   final_timeout = 2s
119
120 .ifdef OPT
121   dkim_domain =         test.ex
122   dkim_selector =       sel
123   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
124 .ifndef HEADERS_MAXSIZE
125   dkim_sign_headers =   LIST
126 .endif
127 .endif
128
129 # ----- Retry -----
130
131 begin retry
132 * * F,30m,5m;
133 # End