免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2228 | 回复: 4
打印 上一主题 下一主题

[Mail] postfix telnet 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-13 20:54 |只看该作者 |倒序浏览
############################CYRUS-SASL############################
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!

把这行去掉smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname
telnet localhost 25 就没有问题 否则会出现以下故障
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
停在这里了。。。。。。。

论坛徽章:
0
2 [报告]
发表于 2007-12-13 20:58 |只看该作者
日志呢?

论坛徽章:
0
3 [报告]
发表于 2007-12-13 21:15 |只看该作者
# tail /var/log/maillog
Dec 13 22:21:19 myserver postfix/cleanup[8186]: 3C3C6C3D16: message-id=<20071213
142119.3C3C6C3D16@mail.myserver.com>
Dec 13 22:21:19 myserver postfix/qmgr[7820]: 3C3C6C3D16: from=<root@myserver.com
>, size=732, nrcpt=1 (queue active)
Dec 13 22:21:19 myserver postfix/local[8188]: 3C3C6C3D16: to=<root@myserver.com>
, orig_to=<root>, relay=local, delay=0.15, delays=0.08/0/0/0.06, dsn=2.0.0, stat
us=sent (delivered to mailbox)
Dec 13 22:21:19 myserver postfix/qmgr[7820]: 3C3C6C3D16: removed
Dec 13 22:31:08 myserver postfix/postfix-script: refreshing the Postfix mail sys
tem
Dec 13 22:31:08 myserver postfix/master[7662]: reload configuration /etc/postfix
Dec 13 22:31:13 myserver postfix/smtpd[8387]: warning: dict_nis_init: NIS domain
name not set - NIS lookups disabled
Dec 13 22:31:13 myserver postfix/smtpd[8387]: fatal: parameter "smtpd_recipient_
restrictions": specify at least one working instance of: check_relay_domains, re
ject_unauth_destination, reject, defer or defer_if_permit
Dec 13 22:31:14 myserver postfix/master[7662]: warning: process /usr/local/postf
ix/libexec/smtpd pid 8387 exit status 1
Dec 13 22:31:14 myserver postfix/master[7662]: warning: /usr/local/postfix/libex
ec/smtpd: bad command startup -- throttling

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
4 [报告]
发表于 2007-12-14 11:05 |只看该作者
mynetworks 参数怎么设置的?


Dec 13 22:31:13 myserver postfix/smtpd[8387]: fatal: parameter "smtpd_recipient_
restrictions": specify at least one working instance of: check_relay_domains, re
ject_unauth_destination, reject, defer or defer_if_permit


这行的信息很重要
看你的设置里面的这几个参数值是什么

postconf -n |grep ***




还有你的sasl是用什么方式来做验证的?

[ 本帖最后由 ruochen 于 2007-12-14 11:10 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2007-12-14 19:24 |只看该作者
smtpd.conf:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN


smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname

#postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/local/postfix/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/postfix/libexec
debug_peer_level = 2
html_directory = /usr/www/postfix_html
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/postfix/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = myserver.com
myhostname = mail.myserver.com
mynetworks = 192.168.10.0/24,127.0.0.0/8
myorigin = myserver.com
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = Welcome to our $myhostname ESMTP,Warning:Version not Available!
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP