↓ Skip to main content
Self Hosting Part 2.3

Mail Server: Using a Mail Client

Connecting to the mail accounts with any mail client that supports IMAP, like Thunderbird.

Series map 6/23
Self Hosting
  1. 0 Planning and Architecture
  2. 1 Post-Install Configuration
  3. 2 Mail Server Setup
    1. 2.1 Setting Up SSL for the Mail Server
    2. 2.2 Adding a New Domain to the Mail Server
    3. 2.3 Using a Mail Client
    4. 2.4 Moving the Mail Server
    5. 2.5 Extra Settings
  4. 3 NGINX Configuration
  5. 4 Docker Setup
    1. 4.1 A Ready Template for Docker Containers
  6. 5 Firewalld Configuration
  7. 6 Fail2Ban Configuration
  8. 7 WireGuard Setup
    1. 7.1 Adding WireGuard Clients
    2. 7.2 Putting Services Behind the VPN
    3. 7.3 Possible Problems
  9. 8 Vault Setup
  10. 9 Vaultwarden Setup
  11. 10 WordPress Setup
    1. 10.1 Moving an Old WordPress Site into This Setup
  12. 11 Usememos Setup
  13. 12 Syncthing Setup
On this page
Requirements

Assumptions

  • The mail server’s name is mail.xenonly.com and the example user is info@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.

ServerPortSecurityAuthentication
Incoming (IMAP)mail.xenonly.com993SSL/TLSNormal password
Outgoing (SMTP)mail.xenonly.com587STARTTLSNormal password
  • Username: The full email address (for example info@xenonly.com). If you write only info, 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
#

  1. We go to Account Settings → Account Actions → Add Mail Account.
  2. We enter the name, email address and password, and click Continue.
  3. 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.
  4. We click Re-test, then Done.

Common Problems
#

  • Certificate warning: A name other than mail.xenonly.com (for example mail.example.com) may have been entered as the server address. The certificate is valid only for mail.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.