Configuration reference

Environment variables, profiles, and service roles.

Values below come from the released source and Compose model. Read the matching .env.example before changing a deployment. Compose interpolation and container runtime variables are separate layers.

Core variables#

Name Default / use
ASEMAIL_IMAGE asemail:local; pin a reviewed immutable image for deployments
ASEMAIL_BIND_ADDRESS 127.0.0.1; host interface for the web endpoint
ASEMAIL_PORT 3000; published host port
ASEMAIL_PUBLIC_URL http://localhost:3000; exact public URL
ASEMAIL_INSTANCE_NAME aseMail; display name
ASEMAIL_DATABASE_URL PostgreSQL connection string; API and worker must agree
ASEMAIL_DB_PASSWORD Compose database password; replace the development fallback
ASEMAIL_MASTER_KEY_FILE Instance encryption-key file
ASEMAIL_BOOTSTRAP_TOKEN_FILE First-administrator bootstrap-token file
ASEMAIL_TRUST_PROXY false; exact proxy IPs or narrow CIDRs when needed
ASEMAIL_DEMO_MODE false; synthetic demo mode
ASEMAIL_LOG_LEVEL info; logging level
ASEMAIL_WORKER_SYNC_CONCURRENCY 3; worker mailbox-sync concurrency
ASEMAIL_MESSAGE_CACHE_MAX_BYTES_PER_ACCOUNT 536870912 (512 MiB)
ASEMAIL_MESSAGE_CACHE_MAX_BYTES_PER_USER 1073741824 (1 GiB)

Service roles#

The API serves the browser and authenticated routes. The worker processes background synchronization and delivery. PostgreSQL holds application state and the work queue. An available API does not establish worker health or mail delivery.

Reverse proxy#

ASEMAIL_BIND_ADDRESS=127.0.0.1
ASEMAIL_PUBLIC_URL=https://mail.example.com
ASEMAIL_TRUST_PROXY=192.0.2.10/32

Replace mail.example.com with your public hostname and 192.0.2.10/32 with the exact proxy source address as observed by the API. The value true is rejected. Keep the cleartext API private. Preserve streaming responses for /api/v1/events, original host/protocol, and same-origin API routing.

mailcow variables#

Name Purpose
ASEMAIL_MAILCOW_SSO_ENABLED Enable optional signed handoff
ASEMAIL_MAILCOW_SSO_URL Canonical HTTPS bridge URL
ASEMAIL_MAILCOW_SSO_ONLY Use native mailbox entry on this integrated instance
ASEMAIL_MAILCOW_SSO_TRUST_MFA Explicitly trust verified native factor evidence
ASEMAIL_MAILCOW_MANAGED_PROFILE_FILE Read-only generated profile configuration
ASEMAIL_MAILCOW_SETTINGS_URL Optional same-origin native settings endpoint
ASEMAIL_MAILCOW_SECURITY_ENABLED Native Security controls
ASEMAIL_MAILCOW_WEBMAIL_PROXY Bundled application-prefix proxy policy

Use the exact overlays and protected file mounts in Install the add-on. Do not paste secret values into .env examples, logs, or support reports. Review whether a variable is forwarded by your selected Compose model before assuming it reaches a container.

Search all guides. Use ↑ ↓ to move through results.

aseMail screenshot