You are on page 1of 1

Activar puerto 465 en postfix

The master.cf file (usually found in /etc/posfix/master.cf) controls the startup and
configuration of specific Postfix services. A configuration like this in that file, according
to the documentation, will do what you want:
smtp inet n - - - - smtpd
-o smtpd_tls_security_level=none
-o smtpd_sasl_auth_enable=no

smtps inet n - - - - smtpd


-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject

This configuration turns off authentication and the STARTTLS option on port 25. It
turns on the STARTTLS option on port 465, requires STARTTLS usage, enables
authentication, and only allows clients to connect if authenticated.
You might also look into the smtpd_tls_wrappermode option to force true TLS
connections (and not STARTTLS connections).
Note that this kind of configuration can make the Postfix configuration somewhat
difficult to follow (options may be set in main.cf and then overridden in master.cf). The
other option is to run multiple instances of Postfix, each with their
own main.cf configuration files that specify these options.

You might also like