Postfix - 收件人地址被拒绝:本地收件人中的用户未知 table
Postfix - Recipient address rejected: User unknown in local recipient table
我正在学习(尝试)在 Centos 7 VM 中构建自己的邮件服务器。
当我收到的邮件被拒绝时,我遇到了一个问题。
使用 POSTFIX 我正在尝试将电子邮件从 gmail 发送到我的邮件,但它被这个错误卡住了。下面我将提供尽可能多的信息。
顺便说一句,我没有任何 DNS 记录,所以我只使用 IP。
用户是约翰。
[root@mail ~]# cat /etc/aliases
john: john
来自(postconf -d;postconf -d;postconf -n;)的输出 |排序 | 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]
任何帮助将不胜感激:) 谢谢。
我发现了类似的东西:
With regular expression tables, Postfix only queries with the full
recipient address, and not with the bare username or the "@domain.tld"
wild-card.
如果有帮助请告诉我 ;)
已找到解决方案:
/etc/postfix/main.cf
local_recipient_maps =
默认情况下启用本地收件人映射 = 将其设置为空可使 postfix 最终接受消息并将其存储在用户文件中。
还要启用向用户 Outlook 下载电子邮件 - 将 Chown 权限设置为用户名 - 例如chown john:john /var/spool/mail/john
也完全提供解决方案 - 将 mynetworks = all ... 更改为您的家庭/本地子网 ... 例如我的是 192.168.0.0/24
我正在学习(尝试)在 Centos 7 VM 中构建自己的邮件服务器。 当我收到的邮件被拒绝时,我遇到了一个问题。 使用 POSTFIX 我正在尝试将电子邮件从 gmail 发送到我的邮件,但它被这个错误卡住了。下面我将提供尽可能多的信息。 顺便说一句,我没有任何 DNS 记录,所以我只使用 IP。 用户是约翰。
[root@mail ~]# cat /etc/aliases
john: john
来自(postconf -d;postconf -d;postconf -n;)的输出 |排序 | 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]
任何帮助将不胜感激:) 谢谢。
我发现了类似的东西:
With regular expression tables, Postfix only queries with the full recipient address, and not with the bare username or the "@domain.tld" wild-card.
如果有帮助请告诉我 ;)
已找到解决方案:
/etc/postfix/main.cf
local_recipient_maps =
默认情况下启用本地收件人映射 = 将其设置为空可使 postfix 最终接受消息并将其存储在用户文件中。 还要启用向用户 Outlook 下载电子邮件 - 将 Chown 权限设置为用户名 - 例如chown john:john /var/spool/mail/john
也完全提供解决方案 - 将 mynetworks = all ... 更改为您的家庭/本地子网 ... 例如我的是 192.168.0.0/24