DKIM with multi-hosting
Jean Helou <[email protected]> Wed, 28 Aug 2024 09:00:11 +0200
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <CANw2z=eunedmB+t1PWRDQvVPH2q1NO60989iJ_rnB_eqFSBx9Q@mail.gmail.com> |
Hello,
I'm not sure how to configure the DKIM mailet in a multi hosting scenario.
The documentation at https://james.apache.org/howTo/dkim.html offers the
following snippet
<processors>
<processor state="relay" enableJmx="true">
<mailet match="All" class="org.apache.james.jdkim.mailets.DKIMSign">
<signatureTemplate>v=1; s=james3; d=domain.example.com ; h=from
: reply-to : subject : date : to : cc : resent-date : resent-from :
resent-sender : resent-to : resent-cc : in-reply-to : references :
list-id : list-help : list-unsubscribe : list-subscribe : list-post :
list-owner : list-archive; a=rsa-sha256; bh=; b=;</signatureTemplate>
<privateKey>
-----BEGIN RSA PRIVATE KEY-----
[Your Private Key]
-----END RSA PRIVATE KEY-----
</privateKey>
</mailet>
</processor>
</processors>
However this means that the domain is hard coded and works only in a single
domain hosting scenario.
Am I supposed to configure a dkim processor for each domain I'm hosting
even if the rest of the configuration is the same ?
This doesn't seem to align well with configuring the hosted domains through
the REST API and even when using the domainlist.xml file it means duplicate
declarations ...
(maybe I misunderstand the use of the api for administering domains in
https://james.apache.org/server/manage-webadmin.html#Administrating_domains)
Shouldn't dkim information be configured/provided in the same place as the
domains are configured ?
Thanks !
jean