mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
deploy: e4274ef113
This commit is contained in:
parent
3147621fee
commit
bec5986260
|
@ -1670,6 +1670,10 @@
|
|||
</code></pre></div>
|
||||
<p>will execute the helper script with default parameters.</p>
|
||||
</div>
|
||||
<details class="warning">
|
||||
<summary>Using Multiple Domains</summary>
|
||||
<p>Unlike the current script for OpenDKIM, the Rspamd script will <strong>not</strong> create keys for all domains DMS is managing, but only for the one it assumes to be the main domain (derived from DMS' domain name). Moreover, the default <code>dkim_signing.conf</code> configuration file that DMS ships will also only contain one domain. If you have multiple domains, you need to run the command <code>docker exec -ti <CONTAINER NAME> setup config dkim domain <DOMAIN></code> multiple times to create all the keys for all domains, and then provide a custom <code>dkim_signing.conf</code> (for which an example is shown below).</p>
|
||||
</details>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">About the Helper Script</p>
|
||||
<p>The script will persist the keys in <code>/tmp/docker-mailserver/rspamd/dkim/</code>. Hence, if you are already using the default volume mounts, the keys are persisted in a volume. The script also restarts Rspamd directly, so changes take effect without restarting DMS.</p>
|
||||
|
@ -1702,24 +1706,16 @@
|
|||
</code></pre></div>
|
||||
<p>As shown next:</p>
|
||||
<ul>
|
||||
<li>You can add more domains into the <code>domain { ... }</code> section.</li>
|
||||
<li>A domain can also be configured with multiple selectors and keys within a <code>selectors [ ... ]</code> array.</li>
|
||||
<li>You can add more domains into the <code>domain { ... }</code> section (in the following example: <code>example.com</code> and <code>example.org</code>).</li>
|
||||
<li>A domain can also be configured with multiple selectors and keys within a <code>selectors [ ... ]</code> array (in the following example, this is done for <code>example.org</code>).</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre><span></span><code><span class="c1"># ...</span>
|
||||
|
||||
<span class="na">domain {</span>
|
||||
<span class="w"> </span><span class="na">example.com {</span>
|
||||
<span class="w"> </span><span class="na">selectors [</span>
|
||||
<span class="w"> </span><span class="na">{</span>
|
||||
<span class="w"> </span><span class="na">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"/tmp/docker-mailserver/rspamd/dkim/example.com/rsa.private"</span><span class="c1">;</span>
|
||||
<span class="w"> </span><span class="na">selector</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"dkim-rsa"</span><span class="c1">;</span>
|
||||
<span class="w"> </span><span class="na">},</span>
|
||||
<span class="w"> </span><span class="na">{</span>
|
||||
<span class="w"> </span><span class="na">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">/tmp/docker-mailserver/rspamd/example.com/ed25519.private"</span><span class="c1">;</span>
|
||||
<span class="w"> </span><span class="na">selector</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"dkim-ed25519"</span><span class="c1">;</span>
|
||||
<span class="w"> </span><span class="na">}</span>
|
||||
<span class="w"> </span><span class="na">]</span>
|
||||
<span class="w"> </span><span class="na">}</span>
|
||||
<span class="w"> </span><span class="na">example.org {</span>
|
||||
<span class="w"> </span><span class="na">selectors [</span>
|
||||
<span class="w"> </span><span class="na">{</span>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue