当不从服务器本身发送时,中继访问被拒绝

我正在CentOS 6上设置Postfix&Dovecot。除了将邮件从Outlook发送给其他人以外,一切正常。 接收工作和从SSH控制台发送以及..

我一直在寻找3天

这是/ var / log / maillog中的错误:

10月5日16:11:55 072297后缀/ smtpd [5442]:警告:55.55.55.55:地址未列出主机名55.55.55.55.my.isp.hostname.tld
10月5日16:11:55 072297 postfix / smtpd [5442]:连接来自未知[55.55.55.55]
10月5日16:11:55 072297 postfix / smtpd [5442]:NOQUEUE:拒绝:来自未知的RCPT [55.55.55.55]:554 5.7.1 <[email protected]>:中继访问被拒绝; 从= <[email protected]>到= <[email protected]> proto = ESMTP helo = <MePC>
10月5日16:11:58 072297 postfix / smtpd [5442]:断开与未知[55.55.55.55]

这是我的main.cf(运行'postconf -n'):

alias_database = hash:/ etc / aliases
alias_maps = hash:/ etc / aliases
broken_sasl_auth_clients =是
command_directory = / usr / sbin
config_directory = / etc / postfix
daemon_directory = / usr / libexec / postfix
data_directory = / var / lib / postfix
debug_peer_level = 2
home_mailbox = Maildir /
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner =后缀
mailq_path = /usr/bin/mailq.postfix
manpage_directory = / usr / share / man
mydestination = $ myhostname,localhost。$ mydomain,localhost,$ mydomain
mydomain = domain.com
myhostname = mail.domain.com
mynetworks = 127.0.0.0/8
myorigin = $ mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = / var / spool / postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable =是
smtpd_sasl_path = private / auth smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550

这是我的dovecot.conf(运行“dovecot -n”)(在hashtags前加了一个引号,对脚本parsing器进行了error handling):

'#2.0.9:/etc/dovecot/dovecot.conf
doveconf:警告:注意:您可以使用以下命令获得一个新的干净configuration文件:doveconf -n> dovecot-new.conf
doveconf:警告:/etc/dovecot/dovecot.conf中的设置过时:在auth {}中的所有设置中添加auth_前缀,并完全移除auth {}部分
doveconf:警告:在/etc/dovecot/dovecot.conf:86中的过时设置:passdb pam {}已经被passdb {driver = pam}
doveconf:警告:/etc/dovecot/dovecot.conf中的Obsolete设置:88:userdb passwd {}已被replace为userdb {driver = passwd}
'#OS:Linux 2.6.32-358.18.1.el6.x86_64 x86_64 CentOS release 6.4(Final)
auth_mechanisms =简单login
disable_plaintext_auth = no
listen = *
mail_location = maildir:〜/ Maildir
mbox_write_locks = fcntl
passdb {
司机=帕姆
}
passdb {
司机=帕姆
}
protocols = imap pop3
服务auth {
unix_listener / var / spool / postfix / private / auth {
group = postfix
模式= 0660
用户=后缀
}
}
ssl_cert = ssl_key = userdb {
驱动程序= passwd
}
userdb {
驱动程序= passwd
}
协议pop3 {
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_uidl_format =%08Xu%08Xv
}

非常感谢任何能帮助我的人!

在Outlook中检查您的SMTP服务器设置,并确保您设置了正确的端口587(不是25!),并且您使用了正确的用户名和密码。

检查'SMTP服务器需要身份validation'固定这个,实际上有点愚蠢。
它默认是禁用的。