经过大量的研究,我已经configuration了我的postfix服务器,使用dovecot通过端口465接受SMTPS连接,一切都很顺利。
不幸的是,我忘记了,除非我听25号港口,否则我不会收到网上的任何电子邮件。
我希望有人知道如何打开Postfix上的端口25为匿名用户,但不允许中继和该端口上的任何其他不好的事情。 并按照它的方式离开港口465。
至于我目前的configuration,我改变了master.cf文件:
smtps inet n - n - - smtpd
和main.cf文件:
#使用我们的SSL证书 smtpd_tls_cert_file = ..... cer smtpd_tls_key_file = .....键 smtpd_tls_security_level =可能 #使用Dovecot进行SASLauthentication smtpd_sasl_auth_enable =是 smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sasl_path = private / auth broken_sasl_auth_clients =是 smtpd_recipient_restrictions = permit_sasl_authenticated,reject_unauth_destination
任何帮助表示赞赏!
将以下行添加(并且不要replace)到master.conf以再次启用25
smtp inet n - n - - smtpd
继电器控制在main.cf中完成,所以你可能想要使用类似的东西:
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_pipelining check_client_access hash:/etc/postfix/policyd_weight_client_whitelist check_recipient_access hash:/etc/postfix/policyd_weight_recipient_whitelist check_policy_service inet:127.0.0.1:12525
最后一行是amavis。 无论如何,smtpd_client_restrictions是你search,并在这里你有更精确的url: http : //www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from