标题: [未解决] postfix很奇怪问题!不知道是认证设置不对,还是postfix少东西 (查看:440 回复:5)
  [未解决] 本主题悬赏 MST币 10 点     本主题由 System 于 2008-5-22 05:00 解除限时高亮 
tinkoko
学徒网管



UID 405372
精华 0
积分 8
帖子 654
MST币 1332 点    
BST币 8 点    赚取
阅读权限 60
注册 2006-7-2
状态 离线
 
[ 使用道具 ]  
发表于 2008-5-7 09:50  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
爱琴思邮件系统iGENUS V5.0
postfix很奇怪问题!不知道是认证设置不对,还是postfix少东西
本帖发表在我是网管论坛,帖子地址:http://bbs.54master.com/248895,1,1
很简单的postfix+sasl2+dovecot+openwebmail

现在情况是

outlook可以发信,但是不能收信!
openwebmail发信就出错,554.4.2.1denid的!但是可以收信。

我就想不通为什么outlook可以发不可以收!openwebmail可以收不可以发呢!

下面都是我的配置信息和日志!希望帮我看下!
很谢谢了!


[root@mail mail]# /usr/sbin/postconf -n | more
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/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 = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$my
domain, www.$mydomain, ftp.$mydomain
mydomain = stylepifa.com
myhostname = mail.stylepifa.com
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_sasl_authenticated,reject_unauth_destinati
on
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550


sasl的信息
[root@mail mail]# cat /etc/sysconfig/saslauthd
# Directory in which to place saslauthd's listening socket, pid file, and so
# on.  This directory must already exist.
SOCKETDIR=/var/run/saslauthd
# Mechanism to use when checking passwords.  Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled with the ablity to use.
MECH=shadow
# Additional flags to pass to saslauthd on the command line.  See saslauthd(8)
# for the list of accepted flags.
#FLAGS=
#FLAGS=sasldb
#FLAGS=sasldb2

sasl2的smtpd信息
[root@mail mail]# cat /usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
log_level:3



dovecot
就修改了
protocols = pop3 imap pop3s

都是系统帐户!

我用 126或者yahoo邮箱发送邮件时候,openwebmail都可以收到!但是发送就出错!outlook不能受到!

日志:

May  7 01:51:46 mail dovecot: pop3-login: Login: user=<aiyonet>, method=PLAIN, rip=::ffff:116.232.158.78, lip=::ffff:210.51.188.88
May  7 01:51:46 mail dovecot: POP3(aiyonet): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
May  7 01:51:47 mail dovecot: pop3-login: Login: user=<aiyonet>, method=PLAIN, rip=::ffff:116.232.158.78, lip=::ffff:210.51.188.88
May  7 01:51:47 mail dovecot: POP3(aiyonet): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
May  7 01:51:48 mail dovecot: pop3-login: Login: user=<aiyonet>, method=PLAIN, rip=::ffff:116.232.158.78, lip=::ffff:210.51.188.88
May  7 01:51:48 mail dovecot: POP3(aiyonet): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
May  7 01:51:49 mail dovecot: pop3-login: Login: user=<aiyonet>, method=PLAIN, rip=::ffff:116.232.158.78, lip=::ffff:210.51.188.88
May  7 01:51:49 mail dovecot: POP3(aiyonet): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0



而且outlook填写用户名密码时候,你要是填写abc@stylepifa.com。就是完整域名,他总是谈出个对话框,叫你输入用户名密码!
要是你只输入abc,不要写域名的话,那么认证就通过了!

啊!好累啊~~麻烦谁能帮我看下!
防火墙全都打开了!

[ 点这里复制网址,推荐给你QQ/MSN上的好友们! ]
本站声明:以上内容由网友 tinkoko 提供,与54master立场无关!
《我是网管》论坛
上海哎哟网络IDC(상해아이요넷 )

QQ9197216
[ 顶部 ]
tinkoko
学徒网管



UID 405372
精华 0
积分 8
帖子 654
MST币 1332 点    
BST币 8 点    赚取
阅读权限 60
注册 2006-7-2
状态 离线
 
[ 使用道具 ]  
发表于 2008-5-7 09:51  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
openwebmail只要发信,就出错!


OpenWebMail ERROR  

Sorry, there was a problem sending your message.<br> <a href="/cgi-bin/openwebmail/openwebmail-send.pl?sessionid=qz*210.51.188.88-session-0.408282656778709&action=composemessage&composetype=editdraft&folder=saved-drafts&message_id=%3C20080506175401.M82425%40mail.stylepifa.com%3E">Please check the message saved in draft folder, and try again.</a><br><br> <form><textarea name="smtperror" rows="10" cols="72" wrap="soft">&gt;&gt;&gt; Net::SMTP(2.29) &gt;&gt;&gt; Net::Cmd(2.26) &gt;&gt;&gt; Exporter(5.58) &gt;&gt;&gt; IO::Socket::INET(1.29) &gt;&gt;&gt; IO::Socket(1.29) &gt;&gt;&gt; IO::Handle(1.25) &lt;&lt;&lt; 220 mail.stylepifa.com ESMTP Postfix &gt;&gt;&gt; EHLO mail.stylepifa.com &lt;&lt;&lt; 250-mail.stylepifa.com &lt;&lt;&lt; 250-PIPELINING &lt;&lt;&lt; 250-SIZE 10240000 &lt;&lt;&lt; 250-VRFY &lt;&lt;&lt; 250-ETRN &lt;&lt;&lt; 250-AUTH PLAIN LOGIN &lt;&lt;&lt; 250-AUTH=PLAIN LOGIN &lt;&lt;&lt; 250-ENHANCEDSTATUSCODES &lt;&lt;&lt; 250-8BITMIME &lt;&lt;&lt; 250 DSN &gt;&gt;&gt; MAIL FROM:&lt;qz@mail.stylepifa.com&gt; &lt;&lt;&lt; 250 2.1.0 Ok &gt;&gt;&gt; RCPT TO:&lt;tinkoko@126.com&gt; &lt;&lt;&lt; 554 5.7.1 &lt;tinkoko@126.com&gt;: Relay access denied </textarea></form>

什么意思啊!!!!!!

是不是还是postfix设置

本站声明:以上内容由网友 tinkoko 提供,与54master立场无关!
《我是网管》论坛
上海哎哟网络IDC(상해아이요넷 )

QQ9197216
[ 顶部 ]
wangyanjie_2008
衰哥霉女




UID 517549
精华 0
积分 -19
帖子 85
MST币 1 点    
BST币 -19 点    赚取
阅读权限 0
注册 2007-4-29
状态 离线
 
[ 使用道具 ]  
发表于 2008-5-7 14:09  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
这是因为你在POSTFIX主配置文件也就是MAIN。CF文件里的验证设的不对。应该这样设置smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
  permit_sasl_authenticated,
  permit_mynetworks,
  reject_unauth_destination
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access
通过这样的设置就不会出现你的问题了。OPENWEBMAIL也正常了!

本站声明:以上内容由网友 wangyanjie_2008 提供,与54master立场无关!
[ 顶部 ]
wangyanjie_2008
衰哥霉女




UID 517549
精华 0
积分 -19
帖子 85
MST币 1 点    
BST币 -19 点    赚取
阅读权限 0
注册 2007-4-29
状态 离线
 
[ 使用道具 ]  
发表于 2008-5-7 14:11  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
在OUTLOOK中还要设置“SMTP服务器需要身份验证”这个选项选上,要不然就只能收信不能发本域外以外的信件了!账户名写用户名就行,如abc@abc.com,就写ABC,要不然POSTFIX会不认的。

本站声明:以上内容由网友 wangyanjie_2008 提供,与54master立场无关!
[ 顶部 ]
tinkoko
学徒网管



UID 405372
精华 0
积分 8
帖子 654
MST币 1332 点    
BST币 8 点    赚取
阅读权限 60
注册 2006-7-2
状态 离线
 
[ 使用道具 ]  
发表于 2008-5-7 15:32  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
解决了!

原来原因是webmail和outlook的收信不再一个文件呢!

把postfix的main.cf



home_mailbox= /Maildir/

就好了!

本站声明:以上内容由网友 tinkoko 提供,与54master立场无关!
《我是网管》论坛
上海哎哟网络IDC(상해아이요넷 )

QQ9197216
[ 顶部 ]
wangyanjie_2008
衰哥霉女




UID 517549
精华 0
积分 -19
帖子 85
MST币 1 点    
BST币 -19 点    赚取
阅读权限 0
注册 2007-4-29
状态 离线
 
[ 使用道具 ]  
发表于 2008-5-8 07:56  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
奇怪的问题,你的问题我还真没有遇到过哎,学习了!

本站声明:以上内容由网友 wangyanjie_2008 提供,与54master立场无关!
[ 顶部 ]
  
 



当前时区 GMT+8, 现在时间是 2008-9-6 06:27

Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.074701 second(s), 13 queries , Gzip enabled

清除 Cookies - 关于我是网管 - 联系我是网管 - 广告服务 - 诚聘版主 - 无图版 - WAP -