···74747575<p>The next thing I struggled with — DNS. Specifically, the with the step where
7676the DKIM keys are generated<sup class="footnote-ref" id="fnref-2"><a href="#fn-2">2</a></sup>. The output under <br />
7777-<code>config/opendkim/keys/domain.tld/mail.txt</code>
7777+<code>config/opendkim/keys/domain.tld/mail.txt</code> <br />
7878isn’t exactly CloudFlare friendly; they can’t be directly copy-pasted into
7979a <code>TXT</code> record. </p>
8080
+6-2
build/blog/mailserver/index.html
···130130<p>Yet another hurdle — SSL/TLS certificates. This isn’t very properly
131131documented, unless you read through the <a href="https://github.com/tomav/docker-mailserver/wiki/Installation-Examples">wiki</a>
132132and look at an example. In short, install <code>certbot</code>, have port 80 free,
133133-and run <code>certbot certonly --standalone -d mail.domain.tld</code>. Once that’s
134134-done, edit the <code>docker-compose.yml</code> file to mount <code>/etc/letsencrypt</code> in
133133+and run </p>
134134+135135+<div class="codehilite"><pre><span></span><code>$ certbot certonly --standalone -d mail.domain.tld
136136+</code></pre></div>
137137+138138+<p>Once that’s done, edit the <code>docker-compose.yml</code> file to mount <code>/etc/letsencrypt</code> in
135139the container, something like so:</p>
136140137141<div class="codehilite"><pre><span></span><code><span class="nn">...</span>
+6-2
pages/blog/feed.xml
···102102<p>Yet another hurdle — SSL/TLS certificates. This isn’t very properly
103103documented, unless you read through the <a href="https://github.com/tomav/docker-mailserver/wiki/Installation-Examples">wiki</a>
104104and look at an example. In short, install <code>certbot</code>, have port 80 free,
105105-and run <code>certbot certonly --standalone -d mail.domain.tld</code>. Once that’s
106106-done, edit the <code>docker-compose.yml</code> file to mount <code>/etc/letsencrypt</code> in
105105+and run </p>
106106+107107+<div class="codehilite"><pre><span></span><code>$ certbot certonly --standalone -d mail.domain.tld
108108+</code></pre></div>
109109+110110+<p>Once that’s done, edit the <code>docker-compose.yml</code> file to mount <code>/etc/letsencrypt</code> in
107111the container, something like so:</p>
108112109113<div class="codehilite"><pre><span></span><code><span class="nn">...</span>
+7-2
pages/blog/mailserver.md
···9090Yet another hurdle --- SSL/TLS certificates. This isn't very properly
9191documented, unless you read through the [wiki](https://github.com/tomav/docker-mailserver/wiki/Installation-Examples)
9292and look at an example. In short, install `certbot`, have port 80 free,
9393-and run `certbot certonly --standalone -d mail.domain.tld`. Once that's
9494-done, edit the `docker-compose.yml` file to mount `/etc/letsencrypt` in
9393+and run
9494+9595+``` shell
9696+$ certbot certonly --standalone -d mail.domain.tld
9797+```
9898+9999+Once that's done, edit the `docker-compose.yml` file to mount `/etc/letsencrypt` in
95100the container, something like so:
96101```yaml
97102...