Updated 2026-10-08

How to Configure the Nextcloud Email Server (SMTP)

In Nextcloud, go to Administration settings -> Basic settings -> Email server, set Send mode to SMTP, Encryption to None/STARTTLS, Server address to smtp.bulko.io with port 587, tick Authentication required and enter your Bulko SMTP credentials, then click Send email to test. Nextcloud upgrades the connection with STARTTLS automatically.

Hostsmtp.bulko.io
Port587 · 465 · 2525
EncryptionSTARTTLS · SSL
Loginfrom dashboard

Nextcloud SMTP settings

FieldValue
Send modeSMTP
EncryptionNone/STARTTLS (port 587 or 2525) or SSL (port 465)
From addresscloud @ yourdomain.com (a domain you control)
Server addresssmtp.bulko.io
Port587
AuthenticationAuthentication required: checked
Credentials: SMTP LoginYour Bulko SMTP username (smtp_xxxxxxxxxxxxxxxx)
Credentials: SMTP PasswordYour Bulko SMTP password

Step-by-step setup

  1. Buy an SMTP package on the Bulko SMTP Relay page and copy the username and password from Dashboard -> SMTP Access.
  2. In Nextcloud, set your own email address under Personal settings first. The test message goes there.
  3. Click your avatar, open Administration settings and choose Basic settings. Scroll to Email server.
  4. Set Send mode to SMTP and Encryption to None/STARTTLS.
  5. Enter the From address (local part and domain, for example cloud @ yourdomain.com), Server address smtp.bulko.io and port 587.
  6. Tick Authentication required, enter the SMTP Login and SMTP Password under Credentials, and click Save.
  7. Click Send email to send a test message to your personal address.

config/config.php (alternative to the UI)

<?php
// config/config.php (excerpt)
$CONFIG = array (
  // ...
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.bulko.io',
  'mail_smtpport' => 587,
  'mail_smtpsecure' => '',          // '' = None/STARTTLS, 'ssl' = SSL on port 465
  'mail_smtpauth' => true,
  'mail_smtpname' => 'smtp_xxxxxxxxxxxxxxxx',
  'mail_smtppassword' => 'YOUR_BULKO_SMTP_PASSWORD',
  'mail_from_address' => 'cloud',   // local part, before the @
  'mail_domain' => 'yourdomain.com',
  // ...
);

Send a test email

The Send email button in the Email server section sends a test message to the address on your Personal settings page. Nextcloud shows a confirmation when the relay accepts the message, or the SMTP error text if it does not.

For a real-world check, use the password reset link on the login page for a test user, or share a file with an email recipient. If something fails, look at Administration settings -> Logging or data/nextcloud.log.

Troubleshooting

ProblemFix
Connection timed out when clicking Send emailThe server cannot reach the port; many hosts block outbound SMTP. Change the port to 2525 (keep None/STARTTLS), or ask your provider to open 587.
SSL operation failed / wrong version numberEncryption and port do not match. Use None/STARTTLS with 587 or 2525, and SSL only with 465.
535 Authentication failedMake sure Authentication required is ticked and paste the login and password again from Dashboard -> SMTP Access. More: https://bulko.io/en/smtp-errors/535/.
Test fails immediately with a generic errorUsually no email address is set on your Personal settings page, so the test has no recipient. Add one and try again; otherwise check nextcloud.log for the SMTP reply.
554 5.7.1 rejectedBulko's content filter rejected the message. Check that the From address is on your own domain and the email contains no suspicious links.
Notification emails land in spamUse a From address on your domain, verify the domain in Bulko for DKIM alignment, and check SPF at https://bulko.io/en/validators/spf-checker/.

FAQ

Can I force STARTTLS in Nextcloud?

No. Since Nextcloud 26 STARTTLS cannot be enforced; with None/STARTTLS it is used automatically when the server offers it, which Bulko does on 587 and 2525. For a mandatory encrypted connection choose SSL with port 465.

Where are the Nextcloud mail settings stored?

In config/config.php as mail_smtpmode, mail_smtphost, mail_smtpport, mail_smtpsecure, mail_smtpauth, mail_smtpname, mail_smtppassword, mail_from_address and mail_domain.

What emails does Nextcloud send?

Password resets, new account welcome emails, share notifications, activity digests and app notifications. Volumes are usually small.

How much does it cost?

Bulko SMTP is a one-time package: $5 for 5,000 emails, $15 for 20,000, $30 for 50,000 or $60 for 150,000, with no subscription and no expiry.

Can the Nextcloud Mail app use Bulko?

Only for sending. The Mail app also needs IMAP for an inbox, and Bulko SMTP has no IMAP or mailbox.

Is there a daily limit?

Yes, 2,000 emails per day per SMTP account by default. Write to [email protected] if a large instance needs more.

Get SMTP credentials for Nextcloud

One-time payment by card or crypto, no subscription. Unused emails never expire. 2,000 emails per day per SMTP account.

SMTP Relay 5K: $5 · 5000SMTP Relay 20K: $15 · 20000SMTP Relay 50K: $30 · 50000SMTP Relay 150K: $60 · 150000
See SMTP relay plans

What you can send: Acceptable Use Policy.