postfix 配置错误:“(域)的邮件循环回到我自己”

postfix 配置错误:“(域)的邮件循环回到我自己”

我刚刚在我的 debian 系统上安装了 postfix,所以除了 /etc/postfix/main.cf 中的以下值外,我还有一个默认配置:

myhostname = mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = myhostname, localhost.localdomain, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
myorigin = mydomain.com
relay_domains = mydomain.com

我发送的每封电子邮件[电子邮件保护]邮件服务器退回邮件告诉我:

This is the mail system at host mydomain.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<[email protected]>: mail for mydomain.com loops back to myself

我该如何解决这个问题?

答案1

如果这确实是您所拥有的,main.cf那么修复就很容易了。

你需要一美元。

mydestination = $myhostname, localhost.localdomain, , localhost

如果这不能解决问题则运行postconf -n并发布输出。

相关内容