Mailbox settings & authentication
Connect native settings and understand sign-in.
These capabilities require the optional mailcow add-on. They are not enabled by an ordinary IMAP/SMTP connection alone.
Native sign-in and logout#
The integrated entry at your configured application path uses mailcow's native login. Eligible existing sessions may open the mailbox directly. An existing passkey can be used only through the reviewed native hook and factor policy. ASEMAIL_MAILCOW_SSO_ONLY=true disables direct mailbox password/passkey entry on that integrated instance; mailcow remains the authentication authority.
ASEMAIL_MAILCOW_SSO_TRUST_MFA=true deliberately trusts verified native factor evidence. Missing evidence falls back to aseMail's factor check. An eligible remembered session is not automatically proof of fresh MFA.
Integrated Sign out ends aseMail and the current native mailcow browser session. A separate standalone instance with optional SSO ends only its own aseMail session. Verify which deployment you operate before documenting logout behavior.
Optional native settings#
ASEMAIL_MAILCOW_SETTINGS_URL points at the signed settings endpoint and requires SSO and the same HTTPS origin as the bridge. The adapter must explicitly allow the relevant setting operations. Password changes, aliases, spam-related preferences, app passwords, filters, and factor controls depend on supported native features, account policy, and operator configuration.
ASEMAIL_MAILCOW_SECURITY_ENABLED=true selects mailcow controls in aseMail's Security settings. It does not silently change mailcow's sign-in policy. Settings actions can require fresh native verification; use the exact released operator steps.
Permission boundaries#
The server checks the signed-in mailbox, operation, scope, origin, and freshness. Administrator impersonation is not equivalent to the mailbox owner's password/factor proof. A second mailbox uses the separate owner-authenticated linking flow and explicit consent.
Keep the integration key mounted only where required. The worker does not receive the handoff key; internal mail-auth derivation keys stay on the PHP side. Never substitute the instance master key, a mailbox password, or a global server master credential.
When verification fails#
Check exact canonical URLs, the trailing slash in the generated public URL, profile ID consistency, reviewed source hashes, and enabled adapter policy. Do not approve changed hashes merely to clear a compatibility error. See Troubleshooting.