Requirements
- 2 Mail Server Setup and 2.1 Setting Up SSL for the Mail Server must be done.
Assumptions
- The mail server’s name is
mail.xenonly.comand the example user isinfo@xenonly.com. - The settings in this part are made in the mail client on a personal computer or phone, not on the server.
Our mail server is installed and working. We can log in with the users we created through Roundcube Webmail: at https://xenonly.com/mail before 3 NGINX Configuration, and at https://mail.xenonly.com after it.
We can also connect to the mail accounts with any mail client that supports IMAP, like Thunderbird, Outlook, iOS Mail or Thunderbird for Android.
Connection Details#
Note
Whatever domain is used, the server address is always mail.xenonly.com.
| Server | Port | Security | Authentication | |
|---|---|---|---|---|
| Incoming (IMAP) | mail.xenonly.com | 993 | SSL/TLS | Normal password |
| Outgoing (SMTP) | mail.xenonly.com | 587 | STARTTLS | Normal password |
- Username: The full email address (for example
info@xenonly.com). If you write onlyinfo, the login fails. - Password: The account’s password.
Note
We use IMAP because the POP3 ports are not opened in the firewall (5 Firewalld Configuration). With IMAP the mail stays on the server and looks the same on every device.
Adding an Account in Thunderbird#
- We go to Account Settings → Account Actions → Add Mail Account.
- We enter the name, email address and password, and click Continue.
- Thunderbird tries to find the settings by itself. If it can’t, or if the settings it finds don’t match the table above, we click Configure manually and enter the details as in the table.
- We click Re-test, then Done.
Common Problems#
- Certificate warning: A name other than
mail.xenonly.com(for examplemail.example.com) may have been entered as the server address. The certificate is valid only formail.xenonly.com. - Authentication error: Make sure the full email address is entered as the username.
- Mail can’t be sent: Port 25 may have been chosen for the outgoing server. That port is for server-to-server traffic; clients should use 587.
Internet Message Access Protocol: how mail clients read mail. The mail stays on the server, so every device sees the same folders. Port 993, with TLS.
A webmail application written in PHP, for reading and sending mail in the browser.
Simple Mail Transfer Protocol: how mail is sent. Servers talk to each other on port 25; clients log in and send on port 587 (STARTTLS) or 465 (TLS).
A command that turns a plain connection into an encrypted TLS connection on the same port. Port 465, on the other hand, uses TLS from the very first byte.
Transport Layer Security: the encryption behind
https:// and secure mail connections. The server proves who it is with a certificate, for example one from Let’s Encrypt.