Fix DKIM config #66
1 changed files with 3 additions and 3 deletions
|
@ -240,7 +240,7 @@ in {
|
|||
private-key = "%{file:/run/secrets/dkim_rsa}%";
|
||||
domain = "${domain}";
|
||||
selector = "rsa-default";
|
||||
headers = ["From" "To" "Cc" "Date" "Subject" "Message-ID" "Organization" "MIME-Version" "Content-Type" "In-Reply-To" "References" "List-Id" "User-Agent" "Thread-Topic" "Thread-Index"]; # default from https://stalw.art/docs/smtp/authentication/dkim/sign#signatures
|
||||
headers = ["From" "To" "Cc" "Date" "Subject" "Message-ID" "Organization" "MIME-Version" "Content-Type" "In-Reply-To" "References" "List-Id" "Thread-Topic" "Thread-Index"]; # default from https://stalw.art/docs/smtp/authentication/dkim/sign#signatures except "User-Agent" which somehow breaks
|
||||
algorithm = "rsa-sha256";
|
||||
|
||||
canonicalization = "relaxed/relaxed";
|
||||
};
|
||||
|
@ -248,13 +248,13 @@ in {
|
|||
private-key = "%{file:/run/secrets/dkim_ed25519}%";
|
||||
domain = "${domain}";
|
||||
selector = "ed-default";
|
||||
headers = ["From" "To" "Cc" "Date" "Subject" "Message-ID" "Organization" "MIME-Version" "Content-Type" "In-Reply-To" "References" "List-Id" "User-Agent" "Thread-Topic" "Thread-Index"];
|
||||
headers = ["From" "To" "Cc" "Date" "Subject" "Message-ID" "Organization" "MIME-Version" "Content-Type" "In-Reply-To" "References" "List-Id" "Thread-Topic" "Thread-Index"]; # default from https://stalw.art/docs/smtp/authentication/dkim/sign#signatures except "User-Agent" which somehow breaks
|
||||
algorithm = "ed25519-sha256";
|
||||
canonicalization = "relaxed/relaxed";
|
||||
};
|
||||
};
|
||||
in
|
||||
map signatureTemplate (["lists.mathebau.de"] ++ (map ({domain, ...}: domain) cfg.domains));
|
||||
lib.attrsets.mergeAttrsList (map signatureTemplate (["lists.mathebau.de"] ++ (map ({domain, ...}: domain) cfg.domains)));
|
||||
|
||||
authentication.fallback-admin = {
|
||||
user = "admin";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue
This is a strange header, it is technically not a mail header but a netnews header, which is a different format
for Internet Messages. See IANA and thus only defined in RFC 5536 3.2.13. So think it should not occur in Mail, but maybe in Messages we have to forward. (For example someone joins a newsgroup with a mathebau address). This Message format comes with it complete own set of Headers (that has some overlap with mail), but which we usually don't care to sign, like the
Newsgroups
header, or theInjection-Info
header.So if we agree to not care for netnews and generally only sign netnews headers if they are incidentally mail header, we should not sign
User-Agent
anyway.