I've installed Postfix and PHP on one of my servers (Debian)
TLS in Postfix' configuration is enabled:
smtp_use_tls = yes
smtp_tls_security_level = may
Regularly I need to send out a newsletter Email to ~1,000 addresses.
These mails are "send" via PHP's mail() function.
PHP hands these Emails over to Postfix for delivery.
Is there a way to disable TLS when "sending" mails from PHP?
Can this be done by somehow modifying Postfix' master.cf
?
It should work like this:
- Incoming Emails -> Use TLS
- Outgoing Emails -> Use TLS
- Outgoing Emails from PHP -> Do not use TLS
In other words:
Can Postfix be configured to deliver mails without TLS if they are received via a different port?
Like this:
- Outgoing Emails when received from Port 25 -> Use TLS
- Outgoing Emails when received from Port xy -> Do not use TLS