StupidBeauty
Read times:777Posted at:Wed Nov 23 19:33:34 2011
- no title specified

Postfix∵没启动postgrey而拒信

一开始的配置:

[root@???? postfix-?.?.?]# postconf -n

alias_database = hash:/etc/postfix/aliases

alias_maps = hash:/etc/postfix/aliases

broken_sasl_auth_clients = yes

command_directory = /usr/sbin

config_directory = /etc/postfix

daemon_directory = /usr/libexec/postfix

debug_peer_level = 2

html_directory = /usr/share/doc/postfix-?.?.?-documentation/html

mail_owner = postfix

mailq_path = /usr/bin/mailq.postfix

manpage_directory = /usr/share/man

myhostname = ????.???.??

newaliases_path = /usr/bin/newaliases.postfix

queue_directory = /var/spool/postfix

readme_directory = /usr/share/doc/postfix-?.?.?-documentation/readme

sample_directory = /etc/postfix

sendmail_path = /usr/sbin/sendmail.postfix

setgid_group = postdrop

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client cbl.abuseat.org, reject_rbl_client bl.spamcop.net, reject_rbl_client cblless.anti-spam.org.cn, reject_rbl_client sbl-xbl.spamhaus.org, check_policy_service unix:/var/spool/postfix/postgrey/socket

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

unknown_local_recipient_reject_code = 550

开启咯smtpd_recipient_restrictions选项以便以客户端的方式来发信。一测试,从别的域向这台机器上的用户发信时,会直接被这台服务器拒绝。相关日志:

Nov 24 18:36:26 localhost postfix/smtpd[531]: connect from mail-iy0-f173.google.com[209.85.210.173]

Nov 24 18:36:38 localhost postfix/smtpd[531]: warning: connect to /var/spool/postfix/postgrey/socket: No such file or directory

Nov 24 18:36:39 localhost postfix/smtpd[531]: warning: connect to /var/spool/postfix/postgrey/socket: No such file or directory

Nov 24 18:36:39 localhost postfix/smtpd[531]: warning: problem talking to server /var/spool/postfix/postgrey/socket: No such file or directory

Nov 24 18:36:39 localhost postfix/smtpd[531]: NOQUEUE: reject: RCPT from mail-iy0-f173.google.com[209.85.210.173]: 451 4.3.5 Server configuration problem; from=<???????????@gmail.com> to=<?????@????.???.??> proto=ESMTP helo=<mail-iy0-f173.google.com>

Nov 24 18:36:39 localhost postfix/smtpd[531]: disconnect from mail-iy0-f173.google.com[209.85.210.173]

首先报告跟postgrey相关的警告,接下来拒信,拒信原因写的是“451 4.3.5 Server configuration problem”。一古鸽,发现咯这个帖子:http://www.extmail.org/forum/thread-22275-1-1.html

他的情况是slockd服务没启动,与本座的情况是类似的,而本座的postgrey也是确实没启动的(实际上就没安装,嘿嘿)。∴按照他的解决方法也把相关的配置项“check_policy_service unix:/var/spool/postfix/postgrey/socket”去掉,再重启postfix就好咯。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4