Mail problems
This runbook is for administrators when citizens or staff do not receive mail from a public website, or when a test copy sent mail to real people. Settings and transports are described in Mail delivery (hosting) and chapter 10.4.
Contents
- Which mail is missing?
- Check the transport
- Check what holds mail back
- Mail arrives as spam or is rejected
- A test copy mailed real people
- Related pages
Which mail is missing?
| Sent by | |
|---|---|
| Password reset, password changed, registration | the request itself |
| Form confirmations, form receiver mail | the request itself |
| Notifications | the cronjob part frequent (notification.php) |
| Newsletters | the newsletter extension's cronjobs |
| Audit alerts | the audit cronjob part |
If only cron-sent mail is missing, start with Cronjob monitoring.
Check the transport
./console exp:ini get 'site.ini/MailSettings/Transport' --allow-root-user
./console exp:ini where site.ini/MailSettings/Transport --allow-root-user| Transport | Means |
|---|---|
sendmail (shipped) | handed to the local sendmail program; look at the server's mail log |
SMTP | sent to TransportServer; check the server, port, TransportConnectionType and login |
file | written to var/log/mail/: nothing is sent; Setup > System information shows this as a note |
settings/override outranks siteaccess settings, so a Transport set there wins everywhere. After a change, clear the
INI cache and reload.
Check what holds mail back
- Every mail passes the mail gate, which checks optional mail against the recipient's e-mail preferences (E-mail preferences); essential mail such as "Your password was changed" cannot be switched off.
- The recipient's address on the account may be wrong; Users > Check user accounts shows addresses to users with the right to see them.
- Newsletters: bounces and the blacklist (Mail consent and bounces).
Mail arrives as spam or is rejected
The sending server must be allowed to send for the sender's domain: SPF, DKIM and DMARC records of your domain, a
sender address (EmailSender, AdminEmail) in that domain, SenderHost set to the site's host name. Government
domains often have strict DMARC policies; involve your mail team. A server that sends over IPv6 needs its IPv6 address
in SPF too.
A test copy mailed real people
- Stop it: set
Transport=filefor that installation, in the environment's variant file (settings/override/site.ini.test.append.phpwithEXP_ENV=test), clear the INI cache. - Find what was sent: the mail server's log; the audit trail for the actions that triggered mail.
- Tell your data protection officer if personal data reached the wrong people (Data breach notification framing).
- Prevent it: every restored or staging copy starts with the file transport (Environments: development, test and production).
Related pages
- Restoring to a test server
- Set up environment-specific settings
- Mail preferences (feature)
- Mail delivery (hosting)
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.