Mail Delivery
Features that depend on mail:
- Email activation after public registration
- Password reset on the login page
- Email re-binding under
Settings -> Security - Email verification when external auth cannot match a local account directly
- Email-code MFA in login second-factor verification
- Administrator test mail
Entry:
Admin -> System Settings -> Mail DeliveryRecommended Order
Section titled “Recommended Order”- Fill in the SMTP server, port, and encryption mode
- Fill in username and password as needed
- Fill in the sender address and sender name
- Send a test mail to yourself first
- Then try registration activation, password reset, and email re-binding
- If you plan to enable external-auth email verification or email-code MFA, run each real flow once too
Options at a Glance
Section titled “Options at a Glance”| Option | Purpose |
|---|---|
mail_smtp_host | SMTP server address |
mail_smtp_port | SMTP port, default 587 |
mail_security | Encryption mode; 465 usually means implicit SSL/TLS, other ports use STARTTLS |
mail_smtp_username | SMTP login username |
mail_smtp_password | SMTP login password |
mail_from_address | Sender email shown to recipients |
mail_from_name | Sender name shown to recipients |
If you rarely deal with mail systems: think of SMTP as simply “the connection info for the outgoing mail server”.
Confirming Mail Actually Sends
Section titled “Confirming Mail Actually Sends”The Mail Delivery page has a Send Test Mail button.
Common usage:
- Send directly to the current administrator’s email
- Temporarily switch to another external mailbox to confirm non-intranet domains also receive it
After the test passes, do two more things:
- On the login page, try “register and receive activation mail” or “reset password” once
- Confirm
Admin -> System Settings -> Site -> Public Site URLis set correctly
What Mail Templates Can Change
Section titled “What Mail Templates Can Change”There are currently 7 built-in template groups:
- Registration activation
- Email re-bind confirmation
- Password reset
- Password reset result notification
- Old-email change notification
- External login email verification
- Login email code
Each group can change separately:
- Subject
- Body (HTML)
Why Public Site URL Must Be Configured Together
Section titled “Why Public Site URL Must Be Configured Together”Activation links, password reset links, and email re-bind confirmation links all need to generate addresses that open from the outside.
If the real access address is:
https://drive.example.comSet it here:
Admin -> System Settings -> Site -> Public Site URLIf the same instance has multiple public entries, add them one by one in the list. Background flows like mail, which have no current browser Host, use the first entry as the default origin — put the origin you most want users to click first.
What You See When It Is Not Configured Right
Section titled “What You See When It Is Not Configured Right”| Symptom | Likely broken step |
|---|---|
| New users can register but never receive activation mail | SMTP unreachable, or rejected by the recipient side |
| Password reset button works, but no reset link in the mailbox | Same as above, or Public Site URL is not set |
| User can start an email re-bind but the new mailbox gets no confirmation | Same as above |
| External login reaches email verification but no mail arrives | SMTP not working, or the external-login verification template / public site URL is wrong |
| The MFA page can send an email code but nothing arrives | SMTP not working, or the login email code template was broken by edits |
| Test mail fails | SMTP configuration wrong, or the network egress is blocked |
Troubleshooting checklist:
- SMTP host, port, encryption, username and password
- Whether the sender address is allowed by the SMTP service
- Whether
Public Site URLis a real external HTTP(S) origin; with multiple entries, whether the mail default origin is on the first row - Check both inbox and spam folders
- After mail works again, resend the activation mail or re-bind confirmation mail