diff options
-rw-r--r-- | conf.d/010_main.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/conf.d/010_main.conf b/conf.d/010_main.conf index a8fc0a1..3bc57b0 100644 --- a/conf.d/010_main.conf +++ b/conf.d/010_main.conf | |||
@@ -283,3 +283,35 @@ timeout_frozen_after = 7d | |||
283 | 283 | ||
284 | # keep_environment = ^LDAP | 284 | # keep_environment = ^LDAP |
285 | # add_environment = PATH=/usr/bin::/bin | 285 | # add_environment = PATH=/usr/bin::/bin |
286 | |||
287 | # This string defines the contents of the Received: message header that is | ||
288 | # added to each message, except for the timestamp, which is automatically added | ||
289 | # on at the end (preceded by a semicolon). The string is expanded each time it | ||
290 | # is used. If the expansion yields an empty string, no Received: header line is | ||
291 | # added to the message. Otherwise, the string should start with the text | ||
292 | # "Received:" and conform to the RFC 2822 specification for Received: header | ||
293 | # lines. | ||
294 | # | ||
295 | # Here, we tweak the header to be less verbose and hide the IP address and TLS | ||
296 | # info on messages submitted by MUAs to protect their privacy a bit more. | ||
297 | |||
298 | RECEIVED_FROM = \ | ||
299 | ${if def:sender_rcvhost {from $sender_rcvhost\n\t}\ | ||
300 | {${if def:sender_ident \ | ||
301 | {from ${quote_local_part:$sender_ident} }}\ | ||
302 | ${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}} | ||
303 | |||
304 | RECEIVED_BY_TLS_INFO = \ | ||
305 | ${if def:tls_in_ver { ($tls_in_ver)}}\ | ||
306 | ${if def:tls_in_cipher_std { tls $tls_in_cipher_std\n\t}} | ||
307 | |||
308 | received_header_text = Received: \ | ||
309 | ${if ! ={MUA_SUBMISSION_PORT}{$interface_port} {RECEIVED_FROM}}\ | ||
310 | by $primary_hostname (Exim) \ | ||
311 | ${if def:received_protocol {with $received_protocol }}\ | ||
312 | ${if ! ={MUA_SUBMISSION_PORT}{$interface_port} {RECEIVED_BY_TLS_INFO}}\ | ||
313 | \n\t\ | ||
314 | ${if def:sender_address \ | ||
315 | {(envelope-from <$sender_address>)\n\t}}\ | ||
316 | id $message_exim_id\ | ||
317 | ${if def:received_for {\n\tfor $received_for}} | ||