From: Mark Wooding Date: Tue, 28 May 2024 01:35:51 +0000 (+0100) Subject: base.m4: Nearly set DKIM expiry time. X-Git-Url: https://git.distorted.org.uk/~mdw/exim-config/commitdiff_plain/refs/heads/master?hp=d4f4bfc3ea47f8ba89db46a8b48ded19add391e1 base.m4: Nearly set DKIM expiry time. Alas, Exim is too old to understand this. --- diff --git a/Makefile b/Makefile index 46aa594..a779e41 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,7 @@ OPTIONS_hub += user-spam.m4 vhost.m4 vhost-local.m4 MODES += usersat OPTIONS_usersat = auth.m4 local.m4 satellite.m4 +-include site.mk -include local.mk ###-------------------------------------------------------------------------- diff --git a/base.m4 b/base.m4 index 1b671ef..d64b88b 100644 --- a/base.m4 +++ b/base.m4 @@ -424,7 +424,8 @@ m4_define(<:DKIM_SIGN_P:>, {!def:h_DKIM-Signature:} \ {!def:h_List-ID:} \ {or {{def:authenticated_id} \ - {def:authenticated_sender}}}}:>) + {def:authenticated_sender}}} \ + {bool {DKIM_KEYS_INSTANCE(<:{true}:>, <:{false}:>)}}}:>) m4_define(<:DKIM_KEYS_INSTANCE:>, <:${lookup {${domain:$h_From:}} partial0-lsearch \ @@ -446,6 +447,7 @@ m4_define(<:DKIM_SIGN:>, ${if DKIM_SIGN_P \ {DKIM_KEYS_INSTANCE({${domain:$h_From:}})}} dkim_selector = DKIM_KEYS_INFO(<:{KV(k)}:>) + ##dkim_timestamps = m4_eval(<:7*24*60*60:>) dkim_private_key = \ DKIM_KEYS_INSTANCE(<:m4_dnl {CONF_dkim_keys_dir/$value/active/$dkim_selector.priv}:>) @@ -469,11 +471,13 @@ m4_define(<:DKIM_SIGN:>, ${if DKIM_SIGN_P \ {DKIM_KEYS_INFO(<:m4_dnl {X-CONF_header_token-DKIM-Key-Publication: \ - DKIM signature not suitable for \ - as evidence after delivery; \ + DKIM signature not suitable \ + as evidence after delivery;\n\t\ DKIM private key KV(k) will be \ - published at KV(u) on or before \ - KV(tpub)}:>)}}:>) + published\n\t\ + at KV(u)\n\t\ + on or before KV(tpub)}:>)}}:>) + m4_define(<:SMTP_DELIVERY:>, <:## Prevent sending messages with overly long lines. The use of diff --git a/config.m4 b/config.m4 index 52339b3..8f2db96 100644 --- a/config.m4 +++ b/config.m4 @@ -75,18 +75,18 @@ DEFCONF(user_extaddr_fixup, ${sg {$local_part_suffix}{^[-+]}{}}) ## Other hosts allowed to relay mail through us. DEFCONF(relay_clients,