.env.example 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. # Engagement tracking uses opaque public links and a stable encryption key.
  37. TRACKING_SECRET=change-this-separate-long-random-tracking-secret
  38. ENGAGEMENT_TRACKING_ENABLED=false
  39. TRACKING_RETENTION_DAYS=180
  40. TRUST_PROXY=true
  41. # Optional deliverability headers. One-click should only be enabled when the URL accepts compliant unsubscribe POSTs.
  42. LIST_UNSUBSCRIBE_MAILTO=
  43. LIST_UNSUBSCRIBE_URL=
  44. LIST_UNSUBSCRIBE_POST_ENABLED=false
  45. FEEDBACK_ID_ENABLED=true
  46. REPORT_ABUSE_TO=
  47. CSA_COMPLAINTS_TO=
  48. # Optional bounce envelope sender. Keep disabled until this mailbox/domain receives and processes bounces.
  49. BOUNCE_ADDRESS=
  50. BOUNCE_ENVELOPE_ENABLED=false
  51. # DMARC defaults.
  52. DMARC_POLICY=none
  53. DMARC_RUA=