Question

External SMPT installation/configureation

Good day! I know that Digital Ocean recommends to use external email services and I want to know how to do it properly. I want to know how to implement my proton account into my droplet - (Linux based server,Ubuntu 20.04) in order to get external SMTP server. I try to put SMTP credentials for CMS on the Linux server that I get from ProtonMailBridge on my computer (Windows 10) but it doesn’t work. I entered SMTP hostname (both 127.0.0.1 and mail.protonmail.ch), port, username, password) but got fsockopen(): unable to connect to … As far as I understand I need to install ProtonMailBridge on Linux server, then log in my account on this server, get SMTP credentials and then enter them on CMS as I truly get proton SMTP server on the Linux server. Could you explain me if my guess is right? Thanks in advance.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
November 22, 2022
Accepted Answer

Hi @johnberg,

I’ve not actually used ProtonMail before however and it seems Sergio has already explained how to configure it. What I’ll say additionally, is to use an external Mail service, you’ll need to point your MX record to them, that would be the first and most important change to do.

Once your MX is pointed to them, you’ll be able to receive messages on their platform.

Hi @johnberg,

Proton Mail Bridge is a desktop application that runs in the background, encrypting and decrypting messages as they enter and leave your computer. It lets you add your Proton Mail account to your favorite email client via IMAP/SMTP by creating a local email server on your computer.

With this ProtonMail email configuration, you can access your ProtonMail account from any desktop or mobile app that supports SMTP.

ProtonMail SMTP Settings

  • SMTP Host: 127.0.0.1
  • SMTP Port: 1025 TLS
  • SMTP Username: Your full email address (name@domain.com)

ProtonMail IMAP settings

  • IMAP Host: 127.0.0.1
  • IMAP Port: 1143 TLS
  • Requires SSL: no
  • IMAP Username: Your full email address (name@domain.com)
  • IMAP Password: Passwords get automatically generated from the Bridge. Do not use your Login or Mailbox password.

Hope that helps you,

Sergio Turpín

msmtp with msmtp.service is the easy way to connect your droplet to an external SMTP server.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.