Skip to content

Instantly share code, notes, and snippets.

@omartrigui
Last active April 21, 2017 16:02
Show Gist options
  • Save omartrigui/0cab77d64d79a90d98397aa924f74c8d to your computer and use it in GitHub Desktop.
Save omartrigui/0cab77d64d79a90d98397aa924f74c8d to your computer and use it in GitHub Desktop.
Secure SMTP, POP and IMAP connections in Plesk with Let's Encrypt (Free SSL/TLS Certificates)
# Let's encrypt must be installed and port 443 must not be used for a short period
certbot auth --text --agree-tos --standalone --email user@domain.com -d domain.com -d mail.domain.com
cat /etc/letsencrypt/live/domain.com/privkey.pem > /etc/postfix/postfix_default.pem
cat /etc/letsencrypt/live/domain.com/fullchain.pem >> /etc/postfix/postfix_default.pem
/usr/local/psa/admin/sbin/mailmng --restart-service
# For the other Let's encrypt alternatives : https://wpguru.co.uk/2014/12/plesk-mail-ssl/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment