[求助]postfix smtp本地验证无法通过!

klander 2008-07-07 09:06:40
环境: CentOS5.1 Postfix + Cyrus-SASL + dovecot

验证SMTP失败.
telnet 本机25端口的时候停住没有反映了

配置如下:
/etc/postfix/main.cf
myhostname = mail.pie.com.cn
mydomain = pie.com.cn
myorigin = $mydomain
relay_domains = $mydestination
mydestination = $myhostname,localhost.$mydomain,$mydomain
inet_interfaces =all
mynetworks = 192.168.0.0/22,127.0.0.0/8

smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_auth_destination
broken_sasl_auth_clients = yes
home_mailbox = Maildir/

/usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login

日志:
Jul 6 22:53:27 localhost postfix/postfix-script: starting the Postfix mail system
Jul 6 22:53:27 localhost postfix/master[9544]: daemon started -- version 2.3.3, configuration /etc/postfix
Jul 6 22:53:33 localhost postfix/smtpd[9552]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Jul 6 22:53:34 localhost postfix/master[9544]: warning: process /usr/libexec/postfix/smtpd pid 9552 exit status 1
Jul 6 22:53:34 localhost postfix/master[9544]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
...全文
500 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fcu2z 2008-08-02
  • 打赏
  • 举报
回复
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_auth_destination
这语句有问题,可以参考
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination


elvis_gao 2008-07-11
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 feillex 的回复:]
错误日志已经告诉你答案了。
配置项:smtpd_recipient_restrictions至少需要指定下列几个参数之一。
check_relay_domains, reject_unauth_destination, reject, defer , defer_if_permit
[/Quote]
feillex 2008-07-07
  • 打赏
  • 举报
回复
错误日志已经告诉你答案了。
配置项:smtpd_recipient_restrictions至少需要指定下列几个参数之一。
check_relay_domains, reject_unauth_destination, reject, defer , defer_if_permit

18,773

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧