很简单的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,不要写域名的话,那么认证就通过了!
啊!好累啊~~麻烦谁能帮我看下!
防火墙全都打开了!