Skip to main content

📬 How to Configure the Nextcloud Mail App with the Poste.io Server

This documentation details how to configure the Mail app of Nextcloud (v31) to work with a self-hosted mail server using Poste.io, with support for SSL via Let's Encrypt, integration with the Roundcube panel, and sending notifications through the system.


🧩 Prerequisites

  • ✅ Mail app installed on Nextcloud
  • ✅ Email account created on Poste.io (e.g., [email protected])
  • ✅ Active SSL certificate (Let's Encrypt)
  • ✅ DNS properly configured (A, MX, SPF, DKIM records)
  • ✅ Functional Poste.io server with external access (e.g., mail.seudominio.com.br)

🔧 Installing the Mail App (if not already installed)

  1. Access the Nextcloud panel with the administrator account.
  2. Go to the Apps menu on the sidebar.
  3. In the Communication category, locate the Mail app.
  4. Click Install.

📥 Connecting an Email Account

The Mail app allows adding accounts using automatic detection or manual configuration.

  1. Open the Mail app in the sidebar menu.
  2. Enter the full email and password (e.g., [email protected]). Painel de adição para o servidor de email
  3. Nextcloud will try to identify the IMAP and SMTP servers automatically based on the email domain.
  4. Once configured, you will see a screen with the inbox messages: Caixa de entrada configurada

    ⚠️ Make sure that mail.seudominio.com.br has the correct A DNS record and open ports.


🔧 Manual Mode (Advanced Configuration)

If automatic configuration fails:

IMAP (Incoming)

  • IMAP Server: mail.seudominio.com.br
  • Port: 993
  • IMAP Security: SSL/TLS
  • Authentication: Yes
  • IMAP User: [email protected]
  • IMAP Password: Your password

SMTP (Outgoing)

  • SMTP Server: mail.seudominio.com.br
  • Port: 587
  • Security: STARTTLS
  • Authentication: Yes
  • SMTP User: [email protected]
  • SMTP Password: your password Imagem do painel de configuração manual

👤 Email Account for the System

🎯 Recommendation:
Create an exclusive email account for internal system use, for example:

[email protected]

This account will be used for:

  • Sending user registration emails
  • Administrative alerts
  • Notifications for calendar, tasks, activities, and workflows

📨 How Does Nextcloud Send System Emails?

Emails sent by the Nextcloud system (such as password recovery or notifications) are not sent from the user's personal email, but rather from the account configured as default in the administrator's Basic Email Settings.

🔧 To configure:

  1. Go to Admin > Configurações > Configurações Básicas de E-mail Configurações de email do sistema
  2. Enter:
    • Sender email (e.g., [email protected])
    • Sender name
    • SMTP server (e.g., mail.seudominio.com.br)
    • Port: 587
    • Security: STARTTLS
    • Authentication: Valid Poste.io username and password

📡 Required Ports

ProtocolPortDescription
IMAP993Secure incoming mail
SMTP587Sending with STARTTLS
POP3995(optional) POP receiving
Sieve4190(optional) Email filters

🧪 Functionality Test

  1. Access the Mail app and send an email to any external account (e.g., Gmail).
  2. Verify if the email was delivered successfully.
  3. Send an email from another provider to the configured address.
  4. Check if it appears in the Nextcloud Mail app inbox.

🌐 Alternative Access via Webmail (Roundcube)

The same email accounts created in Poste.io can be accessed via browser:

Log in with the email and password set in the Poste.io panel.


🛠️ Troubleshooting

❌ Authentication Error

  • Check if the username and password are correct.
  • Confirm the account exists in the Poste.io panel.

❌ IMAP or SMTP Not Responding

  • Verify if ports 993 and 587 are open.
  • Confirm if the domain mail.seudominio.com.br correctly points to the server IP.

⚠️ Invalid Certificate

  • In https://mail.seudominio.com.br/admin/, go to: System Settings > TLS Certificates > Let's Encrypt > Enable + Save Changes.

❌ System Emails Not Arriving

  • Properly configure the default sending account in Configurações Básicas de E-mail.
  • Use a dedicated account for the system (e.g., [email protected]).

Done! Now your Nextcloud instance is integrated with your own mail server via Poste.io!