具有相同域的电子邮件不会从后缀中删除

具有相同域的电子邮件不会从后缀中删除

本文介绍了具有相同域的电子邮件不会从后缀中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用后缀来发送电子邮件.当我向其他域发送电子邮件时,它的工作正常,但是当我向与修订版本配置相同的域中发送电子邮件时,它不发送电子邮件.

I am using postfix to send out emails. Its working fine when I send email to other domains but it does not send email when I send emails to the same domain the post fix is configures with.

下面是我的配置:

myhostname = [FQDN]
virtual_alias_maps = hash:/etc/postfix/virtual
#home_mailbox = mail/
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
#mydestination = mydomain1.com, mydomain2.com
#relayhost =
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4

有人可以指出我配置错误的地方吗?

Can anyone point me where misconfiguration is?

推荐答案

将此空白行添加到main.cf文件中.

Add this blank line in your main.cf file.

mydestination =

然后通过运行

/etc/init.d/postfix reload

我注意到您已经尝试通过注释定义mydestination的行来做类似的事情,但是,这不会解决您的问题,因为mydestination默认为$ myhostname,localhost.$ mydomain,localhost.

I noticed you had tried to do something similar by commenting out the line defining mydestination, however, this will not fix your problem because mydestination defaults to $myhostname, localhost.$mydomain, localhost .

这篇关于具有相同域的电子邮件不会从后缀中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 01:45