Skip to main content
Configure HumHub documentation

HumHub emails not arriving: SMTP, sender and queue

When HumHub's emails do not arrive, the cause is almost always one of four things: the transport, the sender address, the sending domain's authentication or the background queue. This page goes through them in that order, with the settings of HumHub 1.19.

Last updated: .

In shortThe test email of the E-Mail settings page is sent at once, but notifications and summaries go through HumHub's background queue. If the test arrives and notifications do not, the problem is the queue, not the mail server.

Where the email settings are

In Administration → Settings → Advanced → E-Mail. The page holds:

  • Mail Transport Type: SMTP/SMTPS, Custom DSN, PHP (Use settings of php.ini file), No Delivery (Debug Mode, Save as file) or Configuration (Use settings from configuration file).
  • For SMTP: hostname, Port number (the hint says 25 for SMTP or 465 for SMTPS), Use SMTPS, username, password and Allow Self-Signed Certificates?.
  • E-Mail sender address, E-Mail sender name and an optional E-Mail reply-to.
  • Show network name instead of logo in email header.

The button is Save & Test: it saves, then sends a "Test message" to the email address of the administrator who clicked. The page then says Saved and sent test email to: …, or Could not send test email. followed by the error of the mail server, which is the first thing to read when it fails.

The E-Mail page of HumHub's advanced settings: sender name and address, transport type and SMTP fields (grayed out where the host sets them)

1. The transport

HumHub's initial data sets the transport to PHP, which hands each email to the server's own mail program. On most servers and every container image, nothing behind it delivers mail to the internet, so emails vanish without an error. Use SMTP/SMTPS with the account of a real sending service or of your organization's mail server, or Custom DSN for the providers whose DSN format the page lists as examples.

No Delivery (Debug Mode, Save as file) writes every email to a file on the server instead of sending it. It is meant for development; if someone chose it to test, no member receives anything.

2. The sender address

HumHub's initial data sets the sender to social@example.com, named "My Social Network". The installer's email step lets you change both, and many installations never do. Mail from an address at example.com, sent by a server that domain never authorized, fails every authentication check and lands in spam or is refused.

Use an address on a domain you control, and one the sending service is allowed to send for. The sender name is what members see in their inbox: your community's name is a good choice.

3. Authenticate the sending domain

Large mailbox providers refuse or file as spam mail that is not authenticated. Three DNS records on the sender's domain do it:

RecordWhat it says
SPFWhich servers may send mail for the domain. Your sending service tells you what to add.
DKIMA key that signs each email, so the receiver can check it was not changed and comes from the domain.
DMARCWhat the receiver should do with mail that fails SPF and DKIM, and where to send reports.

Google publishes the requirements it applies in its email sender guidelines. A sending service (an SMTP relay) sets up SPF and DKIM with you and keeps its servers off blocklists, which a self-hosted mail server has to manage on its own.

4. The background queue

The test email is sent directly, during the click. Everything else is not: each notification is a job of HumHub's background queue, and the email summaries are jobs that the cron puts in that queue. If no queue worker runs, the jobs wait forever and members receive nothing, while the test email keeps working.

Look at Administration → Information → Background Jobs: a growing Waiting count means the queue does not run. Administrators also see a "Warning incomplete setup!" panel on their dashboard when a job has waited more than 20 minutes. The cron and queue page explains both and how to fix them.

Links that point to the wrong address

Emails are built by the queue, outside any browser request, so the links in them come from the Base URL of Administration → Settings → General. After a move to a new domain, or an installation done on a temporary address, check that it is the address members use; otherwise every link in every email leads to the old one.

What members choose

Each member decides which notifications arrive by email, in their account settings under Notifications, from the defaults you set for everyone: see notification defaults. The daily, weekly or monthly activity summary is a separate email with its own setting. An email header image (600 × 150 pixels recommended) is uploaded in Administration → Settings → Appearance.

When it still does not arrive

  1. Save & Test: does the test arrive? If not, read the error and check the host, port, SMTPS and credentials with your sending service.
  2. Does the test land in spam? Check the sender address and SPF, DKIM and DMARC of its domain.
  3. Test arrives, notifications do not: check Background Jobs and the cron.
  4. Only some members miss emails: look at their notification settings, then at the logs of your sending service, which show bounces and refusals per address.

On a CUZY hosted community

Delivery is set up and run by CUZY: the transport and the sender address are fixed settings, shown read-only on the E-Mail page, and emails leave through an authenticated sending domain with SPF, DKIM and DMARC, monitored for deliverability. The sender name stays yours to edit. The queue workers and the cron run for you. Each plan includes a number of notification emails a month (50,000 on the Team plan, 500,000 on the Business plan; see limits), and on the Business plan emails can come from an address on your own domain. Compare the plans or try it free.

Read next

Try HumHub with your own content

A hosted community in two minutes, all paid CUZY modules included, no card asked. Keep everything when you subscribe.

Loading...