Chinaunix

标题: postfix telnet 问题 [打印本页]

作者: zzm183    时间: 2007-12-13 20:54
标题: postfix telnet 问题
############################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 '^]'.
停在这里了。。。。。。。
作者: scyzxp    时间: 2007-12-13 20:58
日志呢?
作者: zzm183    时间: 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
作者: ruochen    时间: 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 编辑 ]
作者: zzm183    时间: 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




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2