more function attribute annotation
[users/heiko/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
21 pipelining_advertise_hosts = :
22
23 # ----- Main settings -----
24
25 primary_hostname = testhost.test.ex
26 domainlist local_domains = @ : test.ex
27
28 acl_smtp_rcpt = check_recipient
29 acl_smtp_data_prdr = check_prdr
30 acl_smtp_data = check_data
31 trusted_users = CALLER
32 queue_only
33 smtp_receive_timeout = 2s
34 log_selector = +received_recipients
35
36 .ifdef _OPT_MAIN_TLS_CERTIFICATE
37 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
38 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
39 .endif
40
41 ALLOW
42
43 # ----- ACL -----
44
45 begin acl
46
47 check_recipient:
48   accept hosts = :
49   accept domains = +local_domains
50   deny   message = relay not permitted
51
52 check_prdr:
53   accept local_parts = good
54   deny
55
56 check_data:
57   warn   message = X-acl-message-linecount: $message_linecount
58   accept
59
60 # ----- Routers -----
61
62 begin routers
63
64 to_server:
65   driver = accept
66   condition =   ${if !eq {SERVER}{server}}
67   transport =   remote_smtp${if eq {OPT}{dkim} {_dkim}}
68   errors_to =   ""
69
70 fail_remote_domains:
71   driver = redirect
72   domains = ! +local_domains
73   data = :fail: unrouteable mail domain "$domain"
74
75 localuser:
76   driver = accept
77   check_local_user
78   transport = local_delivery
79   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
80
81
82 # ----- Transports -----
83
84 begin transports
85
86 local_delivery:
87   driver = appendfile
88   delivery_date_add
89   envelope_to_add
90   file = DIR/test-mail/$local_part
91   headers_add = "X-body-linecount: $body_linecount\n\
92                  X-message-linecount: $message_linecount\n\
93                  X-received-count: $received_count"
94   return_path_add
95
96 remote_smtp:
97   driver = smtp
98   hosts =       127.0.0.1
99   port =        PORT_S
100   allow_localhost
101   command_timeout = 2s
102   final_timeout = 2s
103
104 remote_smtp_dkim:
105   driver = smtp
106   hosts =       127.0.0.1
107   port =        PORT_S
108   allow_localhost
109   command_timeout = 2s
110   final_timeout = 2s
111
112 .ifdef OPT
113   dkim_domain =         test.ex
114   dkim_selector =       sel
115   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
116 .ifndef HEADERS_MAXSIZE
117   dkim_sign_headers =   LIST
118 .endif
119 .endif
120
121 # ----- Retry -----
122
123 begin retry
124 * * F,30m,5m;
125 # End