2023-01-11 16:53:46 +00:00
---
title: "E-mail"
date: 2023-01-11T17:10:29+03:00
2024-04-08 01:41:59 +00:00
weight: 1
2023-01-11 16:53:46 +00:00
description: >
2023-05-11 10:59:43 +00:00
Self-hosted e-mail service
2023-01-11 16:53:46 +00:00
---
2023-05-20 20:05:18 +00:00
E-mail is a time-tested protocol that needs no introduction. A personal mail server will provide special privacy for all correspondence and is useful for registering in online services and personal correspondence, especially for [Delta.Chat ]({{< ref "delta-chat.md" >}} ).
2023-01-20 12:27:13 +00:00
2023-05-17 17:33:53 +00:00
## Authentication
2023-01-11 16:53:46 +00:00
Users from the "users" tab of your app are used.
### Connection configuration
Login must the username with the domain. For example, `user@domain.tld` .
#### SMTP
2023-11-06 11:57:50 +00:00
2024-07-30 16:42:10 +00:00
SMTP Server: `your.domain`
2023-01-11 16:53:46 +00:00
2023-05-18 02:57:31 +00:00
SMTP Port: `587`
Authentication: `STARTLS`
2023-01-11 16:53:46 +00:00
2024-07-30 16:42:10 +00:00
Username: `your_username@your.domain` (your full email address)
2023-01-11 16:53:46 +00:00
#### IMAP
2024-07-30 16:42:10 +00:00
IMAP Server: `your.domain`
2023-01-11 16:53:46 +00:00
2023-05-18 02:57:31 +00:00
IMAP Port: `143`
2023-01-11 16:53:46 +00:00
2023-05-18 02:57:31 +00:00
Authentication: `STARTLS`
2023-01-11 16:53:46 +00:00
2024-07-30 16:42:10 +00:00
Username: `your_username@your.domain` (your full email address)
2023-01-11 16:53:46 +00:00
2023-05-18 02:57:31 +00:00
## Recommended E-mail Clients
2023-01-11 16:53:46 +00:00
2024-07-30 16:42:10 +00:00
- WEB-interface "Roundcube": can be enabled after [setting up the SelfPrivacy server ]({{< ref "docs/Getting started/_index.md" >}} ). It will be accessible at `https://webmail.YOUR.DOMAIN`
(Use **full** email address as login: ```your_username@your.domain```)
2023-05-18 02:57:31 +00:00
- [FairEmail ](https://f-droid.org/packages/eu.faircode.email/ ) (Android)
2024-07-30 16:42:10 +00:00
- [Mozilla Thunderbird ](https://www.thunderbird.net ) (GNU/Linux, Windows, MacOS)
2023-01-11 16:53:46 +00:00
2023-05-18 02:57:31 +00:00
Configuration example for [Mozilla Thunderbird ](https://www.thunderbird.net )
2023-08-30 17:17:25 +00:00
{{< imgproc thunderbird Fill " 1000x950 " / > }}
2023-09-01 15:59:26 +00:00
## What do we use as our email server?
2023-08-30 17:50:07 +00:00
On the deployed server, the following components are responsible for sending, receiving, filtering emails:
2023-09-01 15:42:08 +00:00
- Postfix — SMTP server;
- Dovecot 2 — IMAP server;
- Rspamd — SPAM filter;
2023-01-11 16:53:46 +00:00
## Tips
2023-05-18 02:57:31 +00:00
2023-11-06 11:57:50 +00:00
### Alias for addresses
2023-05-18 02:57:31 +00:00
Use aliases for questionable services or one-time needs.
2023-11-06 11:57:50 +00:00
Messages for `user+alias@domain.com` will go to `user@domain.com` . It can be useful for spam origin analysis if a unique alias is used for each online service when registering.
2023-05-18 02:57:31 +00:00
For example, `bank+user@domain.com` , `cryptoexchenge+user@domain.com` , and so on.
2023-11-06 11:57:50 +00:00
### Directory Filter
Create directories of filters for different purposes. This will help protect against phishing and clogging your inbox.
2023-05-18 02:57:31 +00:00
The message for `user-dir@domain.com` will create a `dir` directory in the `user@domain.com` mailbox and all mail will arrive in the `dir` directory.
Examples:
2023-11-06 11:57:50 +00:00
- `user-w@domain.com` - for registering with web services
- `user-shops` - for web-stores
- `user-pay` - payment systems
- `user-forum` - forum notifications
2023-05-18 02:57:31 +00:00
2023-05-18 03:01:07 +00:00
## Features
2023-11-06 11:57:50 +00:00
2023-05-18 02:57:31 +00:00
- Email is over 50 years old. In IT, this is a sign of maturity and reliability of the technology.
- Email is the most popular way to get infected with viruses (after hacked software and cracks).
2023-10-26 11:53:35 +00:00
- Beware of phishing (fraudulent emails), it can rob you of your savings and control over your digital life.
## Sending email does not work
2023-11-06 11:57:50 +00:00
2023-11-03 17:38:40 +00:00
Sending email may be blocked by your provider.
2023-10-26 11:53:35 +00:00
2023-11-06 11:57:50 +00:00
Hetzner [responds ](https://docs.hetzner.com/cloud/servers/faq/#why-can-i-not-send-any-mails-from-my-server ) that they do indeed block the email for new accounts. After one month of server operation and the first successful payment, Hetzner asks to contact support to clarify the reasons for using email. You may mention that you plan to use email to communicate with users of your services.
2023-11-03 17:38:40 +00:00
2023-11-06 11:57:50 +00:00
With DigitalOcean, such a problem has not been observed, but if you have encountered this, try to get in touch with the hosting support.