[
https://issues.apache.org/jira/browse/JAMES-4153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Tellier closed JAMES-4153.
---------------------------------
Resolution: Fixed
> DKIMSign: signature template: allow for interpolating the domain
> ----------------------------------------------------------------
>
> Key: JAMES-4153
> URL: https://issues.apache.org/jira/browse/JAMES-4153
> Project: James Server
> Issue Type: Improvement
> Components: Mailet Contributions
> Reporter: Benoit Tellier
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> h2. Why?
> I want to host several doains on a single Jmes instance.
> I want to be able tohost multiple domain in a dynamic way so I cannot have
> static confi for DKIM
> I am OK with a single DKIM private key for the entire platform
> Today DKIMSign do require a static domain for `d` token preventing me to
> reach DMARC allgnement
> h2. Proposed solution
> Allow interpolate the MAIL FROM domain, with fallback to a default domain if
> MAIL FROM: <>
> {code:java}
> <mailet match="All"
> class="org.apache.james.jdkim.mailets.DKIMSign">
> <signatureTemplate>v=1; s=s1; d=%MAIL_FROM;
> h=from:subject:date:to:cc; a=rsa-sha256; bh=; b=;</signatureTemplate>
> <defaultDomain>linagora.com</defaultDomain>
>
> <privateKeyFilepath>file://secrets/dkim/dkim.key</privateKeyFilepath>
> <onMailetException>ignore</onMailetException>
> </mailet>
> {code}
> The default domain is optional, required when using %MAIL_FROM.
> %MAIL_FROM is to be replaced with the mail from domin, or the default domain
> if none.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]