邮件服务器-邮件系统-邮件技术论坛(BBS)'s Archiver

心灵科技(idcsea_com),海外专业IDC服务商!

tinkoko 发表于 2008-5-7 01:55

postfix很奇怪问题!不知道是认证设置不对,还是postfix少东西

很简单的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, [url=http://www.$mydomain]www.$mydomain[/url], [url=ftp://ftp.$mydomain]ftp.$mydomain[/url]
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填写用户名密码时候,你要是填写[email=abc@stylepifa.com]abc@stylepifa.com[/email]。就是完整域名,他总是谈出个对话框,叫你输入用户名密码!
要是你只输入abc,不要写域名的话,那么认证就通过了!

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

tinkoko 发表于 2008-5-7 01:56

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&amp;action=composemessage&amp;composetype=editdraft&amp;folder=saved-drafts&amp;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;[email]qz@mail.stylepifa.com[/email]&gt; &lt;&lt;&lt; 250 2.1.0 Ok &gt;&gt;&gt; RCPT TO:&lt;[email]tinkoko@126.com[/email]&gt; &lt;&lt;&lt; 554 5.7.1 &lt;[email]tinkoko@126.com[/email]&gt;: Relay access denied </textarea></form>

什么意思啊!!!!!!

是不是还是postfix设置

tinkoko 发表于 2008-5-7 09:54

难道没有人遇到的么!???

outlook不能收阿

tinkoko 发表于 2008-5-7 15:36

解决了!

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

把postfix的main.cf



home_mailbox= /Maildir/

就好了!

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.