我正在尝试在Centos 7虚拟机中构建自己的邮件服务器。但是,当我收到邮件时遇到了问题,它们被拒绝了。我正在使用POSTFIX尝试从Gmail发送电子邮件到我的邮箱,但出现了以下错误。我将尽可能提供更多信息。
顺便说一下,我没有任何DNS记录,所以我只能使用IP地址。用户为John。
[root@mail ~]# cat /etc/aliases
john: john
(postconf -d; postconf -d; postconf -n; ) | sort | uniq -u
的输出结果如下:mydomain = marhyno.info
myhostname = mail
mynetworks = all
mydestination = localhost.$mydomain, localhost, mail.marhyno.info, <myipo>
smtpd_recipient_restrictions =
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
resolve_numeric_domain = yes
relay_recipient_maps =
alias_maps = hash:/etc/aliases
allow_mail_to_commands = alias,forward,include
allow_mail_to_files = alias,forward,include
biff = no
html_directory = /usr/share/doc/packages/postfix/html
local_recipient_maps = unix:passwd.byname $alias_maps
从 tail -f /var/log/maillog 输出的内容
Feb 10 01:26:55 mail postfix/smtpd[7531]: connect from mail-yb0-f173.google.com[209.85.213.173]
Feb 10 01:26:56 mail postfix/smtpd[7531]: NOQUEUE: reject: RCPT from mail-yb0-f173.google.com[209.85.213.173]: 550 5.1.1 <john@<myip>>: Recipient address rejected: User unknown in local recipient table; from=<stefan.marcin74@gmail.com> to=<john@<myip>> proto=ESMTP helo=<mail-yb0-f173.google.com>
Feb 10 01:26:56 mail postfix/smtpd[7531]: disconnect from mail-yb0-f173.google.com[209.85.213.173]
任何帮助都将不胜感激 :) 谢谢。