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,不要写域名的话,那么认证就通过了!
啊!好累啊~~麻烦谁能帮我看下!
防火墙全都打开了! 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">>>> Net::SMTP(2.29) >>> Net::Cmd(2.26) >>> Exporter(5.58) >>> IO::Socket::INET(1.29) >>> IO::Socket(1.29) >>> IO::Handle(1.25) <<< 220 mail.stylepifa.com ESMTP Postfix >>> EHLO mail.stylepifa.com <<< 250-mail.stylepifa.com <<< 250-PIPELINING <<< 250-SIZE 10240000 <<< 250-VRFY <<< 250-ETRN <<< 250-AUTH PLAIN LOGIN <<< 250-AUTH=PLAIN LOGIN <<< 250-ENHANCEDSTATUSCODES <<< 250-8BITMIME <<< 250 DSN >>> MAIL FROM:<[email]qz@mail.stylepifa.com[/email]> <<< 250 2.1.0 Ok >>> RCPT TO:<[email]tinkoko@126.com[/email]> <<< 554 5.7.1 <[email]tinkoko@126.com[/email]>: Relay access denied </textarea></form>
什么意思啊!!!!!!
是不是还是postfix设置 难道没有人遇到的么!???
outlook不能收阿 解决了!
原来原因是webmail和outlook的收信不再一个文件呢!
把postfix的main.cf
中
home_mailbox= /Maildir/
就好了!
页:
[1]
