Link Search Menu Expand Document

Secure SMTP

Table of contents

  1. Generate the certificate
  2. Configure the email service
  3. Confirming that it works

Generate the certificate

mailway setup-secure-smtp

Configure the email service

In /etc/mailway/frontline/nginx.conf uncomment the bock that starts with listen 0.0.0.0:587 ssl;.

Then restart the service:

mailway restart

It’s recommended to encrypt traffic to the port 25 as well by uncommenting the comments in the first block.

Confirming that it works

openssl s_client -connect $DOMAIN:587

Replace $DOMAIN with the name of the domain you configured to receive emails.

If at the bottom you can read 220 $DOMAIN ESMTP ready it means that you successfully etablished a secure connection to the mail server. At the top you can find informations about the certificate.