Posts for: #Mail Server

PGP Encrypting All (Incoming) Emails

Let’s say we want emails on our mail server to be encrypted at rest, such that only the user has the key. Luckily, there already exists a popular solution for encrypting emails such that only the recipient can read them: OpenPGP.

Using Dovecot Sieve scripts, we can easily PGP-encrypt all incoming email for a user.

A lot of people have done this before, and I didn’t come up with the idea. Please see the Further reading section for some recommended articles I referred to.

Read more

How to Set up a Mail Server on Alpine Linux with Postfix and Dovecot

About mail servers

Simply put, a mail server sends and receives email. When ruby@protonmail.com emails klaasje@gmail.com, Protonmail’s mail server’s MTA sends the email to Google’s mail server’s MTA. Google’s MTA then passes the email on to Google’s MDA, which is responsible for storing the email. MDAs also run IMAP or POP3 servers so you can read your emails and send emails with an email client. IMAP and POP3 are protocols for email retrieval over TCP/IP. For sending email, you would use SMTP.

Read more