.env.example 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. IMAP_ENABLED=true
  20. IMAP_BIND=0.0.0.0
  21. IMAP_PORTS=143:imap,993:imaps
  22. POP3_ENABLED=true
  23. POP3_BIND=0.0.0.0
  24. POP3_PORTS=110:pop3,995:pop3s
  25. MAIL_ACCESS_ALLOW_INSECURE_AUTH=false
  26. # Default outbound identity used in SPF, HELO, and Postfix myhostname.
  27. MAIL_HOSTNAME=smtp.mailhub.example.com
  28. SENDING_IP=203.0.113.10
  29. # Extra SPF mechanisms to preserve coexistence with third-party senders.
  30. # Examples: include:spf.mailjet.com include:_netblocks.m.feishu.cn
  31. DEFAULT_SPF_MECHANISMS=
  32. DNS_RESOLVERS=1.1.1.1,8.8.8.8
  33. DNS_AUTO_CHECK_ENABLED=true
  34. DNS_AUTO_CHECK_INTERVAL_MS=60000
  35. DNS_AUTO_CHECK_LIMIT=25
  36. # SMTP service used by the web API. In docker-compose this is the internal Postfix service.
  37. SMTP_HOST=postfix
  38. SMTP_PORT=25
  39. SMTP_HELO=smtp.mailhub.example.com
  40. SEND_REQUIRES_VERIFIED=false
  41. DELIVERY_TRACKING_ENABLED=true
  42. POSTFIX_LOG_POLL_INTERVAL_MS=5000
  43. # Engagement tracking uses opaque public links and a stable encryption key.
  44. TRACKING_SECRET=change-this-separate-long-random-tracking-secret
  45. ENGAGEMENT_TRACKING_ENABLED=false
  46. TRACKING_RETENTION_DAYS=180
  47. TRUST_PROXY=true
  48. # Optional deliverability headers. One-click should only be enabled when the URL accepts compliant unsubscribe POSTs.
  49. LIST_UNSUBSCRIBE_MAILTO=
  50. LIST_UNSUBSCRIBE_URL=
  51. LIST_UNSUBSCRIBE_POST_ENABLED=false
  52. FEEDBACK_ID_ENABLED=true
  53. REPORT_ABUSE_TO=
  54. CSA_COMPLAINTS_TO=
  55. # Optional bounce envelope sender. Keep disabled until this mailbox/domain receives and processes bounces.
  56. BOUNCE_ADDRESS=
  57. BOUNCE_ENVELOPE_ENABLED=false
  58. # DMARC defaults.
  59. DMARC_POLICY=none
  60. DMARC_RUA=