Chinaunix

标题: postfix 问题求助 谢谢大侠们 急急急急 [打印本页]

作者: pk-feiyang    时间: 2009-11-23 09:22
标题: postfix 问题求助 谢谢大侠们 急急急急
错误日志:
Nov 23 03:02:55 mail postfix/smtpd[2485]: fatal: SASL per-process initialization failed
Nov 23 03:02:56 mail postfix/master[2170]: warning: process /usr/libexec/postfix/smtpd pid 2485 exit status 1
Nov 23 03:02:56 mail postfix/master[2170]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov 23 03:03:57 mail postfix/smtpd[2486]: warning: unsupported SASL server implementation: cyrus
Nov 23 03:03:57 mail postfix/smtpd[2486]: fatal: SASL per-process initialization failed


Nov 23 03:01:51 mail pop3d: LOGIN FAILED, user=postfix, ip=[192.168.0.101]
Nov 23 03:01:51 mail pop3d: authentication error: Input/output error

还有telnet ip 25

到一段就停止了  

急急   啊
作者: 7717060    时间: 2009-11-23 09:44
http://www.extmail.org/forum/archiver/tid-4714.html
作者: blueswxs    时间: 2009-11-23 10:07
Nov 23 03:03:57 mail postfix/smtpd[2486]: warning: unsupported SASL server implementation: cyrus

楼主这些数据包是否安装,另外你在postfix中设置使用什么验证了?
cyrus-sasl-lib-2.1.22-4
cyrus-sasl-2.1.22-4
cyrus-sasl-plain-2.1.22-4
cyrus-sasl-devel-2.1.22-4
作者: pk-feiyang    时间: 2009-11-23 10:23
标题: 回复 #3 blueswxs 的帖子
验证  我不太懂了  我搞了一天了  头都晕了  哎  


postconf -n

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
local_recipient_maps =
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname
mydomain = wyd.com
myhostname = mail.wyd.com
mynetworks = 127.0.0.0/8
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_client_restrictions = permit_sasl_authenticated
smtpd_delay_reject = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:54321
virtual_mailbox_base = /home/mailbox
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:12345
作者: pk-feiyang    时间: 2009-11-23 10:26
标题: 回复 #3 blueswxs 的帖子
验证  我不太懂了  我搞了一天了  头都晕了  哎  


postconf -n

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
local_recipient_maps =
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname
mydomain = wyd.com
myhostname = mail.wyd.com
mynetworks = 127.0.0.0/8
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_client_restrictions = permit_sasl_authenticated
smtpd_delay_reject = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:54321
virtual_mailbox_base = /home/mailbox
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:12345
作者: pk-feiyang    时间: 2009-11-23 11:01
标题: 回复 #3 blueswxs 的帖子
验证  我不太懂了  我搞了一天了  头都晕了  哎  


postconf -n

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
local_recipient_maps =
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname
mydomain = wyd.com
myhostname = mail.wyd.com
mynetworks = 127.0.0.0/8
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_client_restrictions = permit_sasl_authenticated
smtpd_delay_reject = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:54321
virtual_mailbox_base = /home/mailbox
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:12345
作者: blueswxs    时间: 2009-11-23 11:15
原帖由 pk-feiyang 于 2009-11-23 10:26 发表
验证  我不太懂了  我搞了一天了  头都晕了  哎  


postconf -n

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/ ...



虚拟用户配置段:
virtual_mailbox_base = /home/mailbox
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:12345

SASL验证开启:
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous


楼主把体系结构说下例如:

  25/25    25/25     110/993  143/995    80/443   
Incoming Outgoing     POP3     IMAP    WEB-MAIL  

Postfix                                                   IMAP   
                                   Cyrus-IMAP
                                   Cyrus-SASL  
                                   saslauthd  
                                   PAM
                                   pam_mysql
                      MySQL


不明白可以参考这个文档:
http://man.chinaunix.net/tech/Postfix_I.html
作者: pk-feiyang    时间: 2009-11-23 13:23
标题: 回复 #3 blueswxs 的帖子
验证  我不太懂了  我搞了一天了  头都晕了  哎  


postconf -n

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
local_recipient_maps =
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname
mydomain = wyd.com
myhostname = mail.wyd.com
mynetworks = 127.0.0.0/8
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_client_restrictions = permit_sasl_authenticated
smtpd_delay_reject = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:54321
virtual_mailbox_base = /home/mailbox
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:12345
作者: blueswxs    时间: 2009-11-23 13:26
原帖由 pk-feiyang 于 2009-11-23 13:23 发表
验证  我不太懂了  我搞了一天了  头都晕了  哎  


postconf -n

broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/ ...


smtpd_sasl_auth_enable = no
是在不行,把验证关闭,但是会有风险,将来没准会给垃圾邮件发送者提供便利。
作者: pk-feiyang    时间: 2009-11-23 13:29
标题: 回复 #7 blueswxs 的帖子
谢谢  了
作者: pk-feiyang    时间: 2009-11-23 15:53
标题: 回复 #9 blueswxs 的帖子
[root@mail cyrus]# telnet 192.168.0.7 25
Trying 192.168.0.7...
Connected to mail.wyd.com (192.168.0.7).
Escape character is '^]'.
220 mail.wyd.com ESMTP Postfix

500 5.5.2 Error: bad syntax

500 5.5.2 Error: bad syntax

500 5.5.2 Error: bad syntax
又出现这个错误了
作者: pk-feiyang    时间: 2009-11-23 15:58
标题: 回复 #3 blueswxs 的帖子
还有就是用户如何来创建  我创建的用户不能登录 用邮件客户端  总是要我重输入口令




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