How to encrypt postfix?

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/

I run:

sudo postconf -e ‘home_mailbox = Maildir/’
sudo postconf -e 'mydomain = benjaminthompson.org
sudo apt install letsencrypt
sudo letsencrypt certonly --standalone -d benjaminthompson.org

And I get:

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

And find this:

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

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

Since you already have a certificate for your domain ( 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 )

I would love to use the same certificate benjaminthompson.org to postfix.

How do I do that?

Thanks :slight_smile:

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

1 Like

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