Important considerations for SMTP relaying
masterWhen using docker-postfix to send mail, be aware of the following requirements to prevent your emails from being flagged as spam:
- Port 25 Blocking: Many ISPs and hosting providers (like AWS) block outgoing connections on port 25. This image uses port 587 by default to avoid common issues.
- DNS Records: You will likely need to configure:
- SPF (Sender Policy Framework) records.
- DKIM (DomainKeys Identified Mail) records.
- PTR (Reverse DNS) records.
- Static IP: It is difficult to host an SMTP server on a dynamic IP address; a static IP is highly recommended.