Postfix configuration w.r.t. port 25
Posted
by
Monkey Boson
on Server Fault
See other posts from Server Fault
or by Monkey Boson
Published on 2012-06-22T19:21:47Z
Indexed on
2012/06/22
21:18 UTC
Read the original article
Hit count: 241
After a considerable amount of research, I have configured my postfix server to use dovecot to accept SMTPS connections over port 465 and everything works swimmingly.
Unfortunately, I forgot that, unless I listen to port 25, I'm not going to receive any e-mail from the net.
I'm hoping somebody knows off the top of their head how to open up port 25 on Postfix for anonymous users, but disallow relaying and any other bad things on that port. And to leave the port 465 the way it is.
As to my current configuration, I changed the master.cf
file:
smtps inet n - n - - smtpd
and the main.cf
file:
# Use our SSL certificates smtpd_tls_cert_file = .....cer smtpd_tls_key_file = .....key smtpd_tls_security_level = may # Use Dovecot for SASL authentication smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
Any help is appreciated!
© Server Fault or respective owner