# How to encrypt postfix?

**URL:** <https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108>\
**Category:** Help\
**Created:** [January 22, 2018, 4:34pm UTC](https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108 "2018-01-22T16:34:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjaone](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@benjaone](https://community.letsencrypt.org/u/benjaone)\
**Post date:** [January 22, 2018, 4:34pm UTC](https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108/1 "2018-01-22T16:34:03Z")

</div>

Hi,

I have set up fail2ban and Postfix configured with DKIM to send me mails and it works except I would like to get my mails encrypted.

I found this tutorial:

[https://www.upcloud.com/support/secure-postfix-using-lets-encrypt/](https://www.upcloud.com/support/secure-postfix-using-lets-encrypt/)

I run:

sudo postconf -e ‘home\_mailbox = Maildir/’  
sudo postconf -e 'mydomain = [benjaminthompson.org](http://benjaminthompson.org)  
sudo apt install letsencrypt  
sudo letsencrypt certonly --standalone -d [benjaminthompson.org](http://benjaminthompson.org)

And I get:

Problem binding to port 443: Could not bind to IPv4 or IPv6.

And find this:

> **[User Guide — Certbot 0.29.0.dev0 documentation](https://certbot.eff.org/docs/using.html#webroot)**
>
> Automatically enable HTTPS on your website with EFF's Certbot, deploying Let's Encrypt certificates.

But I don’t know what to do. Any help wil be much appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![bfqTudaffO1LNwUSmNFf](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@bfqTudaffO1LNwUSmNFf](https://community.letsencrypt.org/u/bfqTudaffO1LNwUSmNFf)\
**Post date:** [January 22, 2018, 4:53pm UTC](https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108/2 "2018-01-22T16:53:05Z")

</div>

there runs a webserver or something else on port 443. You can’t use standalone mode if there is already something on that port

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [January 22, 2018, 4:59pm UTC](https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108/3 "2018-01-22T16:59:18Z")

</div>

Since you already have a certificate for your domain ( [benjaminthompson.org](http://benjaminthompson.org) ) you can use that certificate for postfix - or are you trying to obtain a certificate for a different domain ( possibly [mail.benjaminthompson.org](http://mail.benjaminthompson.org) )

---

<div class="post-metadata">

**Author:** ![benjaone](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@benjaone](https://community.letsencrypt.org/u/benjaone)\
**Post date:** [January 22, 2018, 6:41pm UTC](https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108/4 "2018-01-22T18:41:57Z")

</div>

I would love to use the same certificate [benjaminthompson.org](http://benjaminthompson.org) to postfix.

How do I do that?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [January 22, 2018, 6:43pm UTC](https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108/5 "2018-01-22T18:43:54Z")

</div>

Just follow the section for “Setting up SMTP authentication” in the link you provided in your first post.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [February 21, 2018, 6:46pm UTC](https://community.letsencrypt.org/t/how-to-encrypt-postfix/51108/6 "2018-02-21T18:46:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
