.env.example 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. APP_PORT=3025
  2. APP_BASE_URL=https://mailhub.example.com
  3. ADMIN_USER=admin
  4. ADMIN_EMAIL=admin@example.com
  5. ADMIN_PASSWORD=change-this-admin-password
  6. SESSION_SECRET=change-this-long-random-session-secret
  7. # Legacy admin send token. New users should generate their own token in the web UI.
  8. API_TOKEN=change-this-legacy-api-token
  9. SUBMISSION_ENABLED=true
  10. SUBMISSION_HOST=smtp.mailhub.example.com
  11. SUBMISSION_BIND=0.0.0.0
  12. SUBMISSION_PORTS=25:smtp,587:smtp,465:smtps,2525:smtp
  13. SUBMISSION_ALT_PORT=2525
  14. SUBMISSION_ALLOW_INSECURE_AUTH=false
  15. SUBMISSION_TLS_CERT=/certs/mailhub.example.com.crt
  16. SUBMISSION_TLS_KEY=/certs/mailhub.example.com.key
  17. SUBMISSION_USERNAME=change-this-smtp-user
  18. SUBMISSION_PASSWORD=change-this-smtp-password
  19. # Default outbound identity used in SPF, HELO, and Postfix myhostname.
  20. MAIL_HOSTNAME=smtp.mailhub.example.com
  21. SENDING_IP=203.0.113.10
  22. # Extra SPF mechanisms to preserve coexistence with third-party senders.
  23. # Examples: include:spf.mailjet.com include:_netblocks.m.feishu.cn
  24. DEFAULT_SPF_MECHANISMS=
  25. DNS_RESOLVERS=1.1.1.1,8.8.8.8
  26. DNS_AUTO_CHECK_ENABLED=true
  27. DNS_AUTO_CHECK_INTERVAL_MS=60000
  28. DNS_AUTO_CHECK_LIMIT=25
  29. # SMTP service used by the web API. In docker-compose this is the internal Postfix service.
  30. SMTP_HOST=postfix
  31. SMTP_PORT=25
  32. SMTP_HELO=smtp.mailhub.example.com
  33. SEND_REQUIRES_VERIFIED=false
  34. DELIVERY_TRACKING_ENABLED=true
  35. POSTFIX_LOG_POLL_INTERVAL_MS=5000
  36. # DMARC defaults.
  37. DMARC_POLICY=none
  38. DMARC_RUA=