Skip to content
AsterDriveDeveloper
Security update: Docker images from v0.4.0-rc.1 fix the high-severity FFmpeg MagicYUV decoder vulnerability (CVE-2026-8461). Upgrade instances using older images immediately.View CVE advisory
Security update: v0.4.0-beta.3 fixes a WebDAV request issue that can terminate the server process. Upgrade older instances promptly.View advisory

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 Delivery
  1. Fill in the SMTP server, port, and encryption mode
  2. Fill in username and password as needed
  3. Fill in the sender address and sender name
  4. Send a test mail to yourself first
  5. Then try registration activation, password reset, and email re-binding
  6. If you plan to enable external-auth email verification or email-code MFA, run each real flow once too
OptionPurpose
mail_smtp_hostSMTP server address
mail_smtp_portSMTP port, default 587
mail_securityEncryption mode; 465 usually means implicit SSL/TLS, other ports use STARTTLS
mail_smtp_usernameSMTP login username
mail_smtp_passwordSMTP login password
mail_from_addressSender email shown to recipients
mail_from_nameSender name shown to recipients

If you rarely deal with mail systems: think of SMTP as simply “the connection info for the outgoing mail server”.

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:

  1. On the login page, try “register and receive activation mail” or “reset password” once
  2. Confirm Admin -> System Settings -> Site -> Public Site URL is set correctly

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.com

Set it here:

Admin -> System Settings -> Site -> Public Site URL

If 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”
SymptomLikely broken step
New users can register but never receive activation mailSMTP unreachable, or rejected by the recipient side
Password reset button works, but no reset link in the mailboxSame as above, or Public Site URL is not set
User can start an email re-bind but the new mailbox gets no confirmationSame as above
External login reaches email verification but no mail arrivesSMTP not working, or the external-login verification template / public site URL is wrong
The MFA page can send an email code but nothing arrivesSMTP not working, or the login email code template was broken by edits
Test mail failsSMTP configuration wrong, or the network egress is blocked

Troubleshooting checklist:

  1. SMTP host, port, encryption, username and password
  2. Whether the sender address is allowed by the SMTP service
  3. Whether Public Site URL is a real external HTTP(S) origin; with multiple entries, whether the mail default origin is on the first row
  4. Check both inbox and spam folders
  5. After mail works again, resend the activation mail or re-bind confirmation mail