Centos 7&x2B;sendmail从错误的主机名发送

Centos 7&x2B;sendmail从错误的主机名发送,centos,sendmail,centos7,postfix-mta,Centos,Sendmail,Centos7,Postfix Mta,我被难住了:当一封电子邮件从我的服务器收到时,它来自错误的主机名 Centos 7 $ postconf -n .... myhostname = myserver.example.com .... $ hostname --fqdn myserver.example.com $ cat /etc/hosts 123.123.123.123 myserver myserver.example.com 127.0.0.1 localhost 但是,当接收到此主机发送的电子邮件时,发件人地址不同

我被难住了:当一封电子邮件从我的服务器收到时,它来自错误的主机名

Centos 7

$ postconf -n
....
myhostname = myserver.example.com
....
$ hostname --fqdn
myserver.example.com

$ cat /etc/hosts
123.123.123.123 myserver myserver.example.com
127.0.0.1 localhost
但是,当接收到此主机发送的电子邮件时,发件人地址不同。domain.com

我确实看到没有/etc/mail目录,也没有/etc/mail/sendmail.cf或/etc/mail/sendmail.mc文件

想法、建议


Dan

首先,您需要检查日志!这真的是Postfix发送邮件还是sendmail安装的遗留问题

Postfix运行时:发送方中使用的地址(信封和标题)由myorigin参数控制。默认为:

myorigin=$myhostname


因此,首先应该是“myserver.example.com”

您需要检查日志!这真的是Postfix发送邮件还是sendmail安装的遗留问题

Postfix运行时:发送方中使用的地址(信封和标题)由myorigin参数控制。默认为:

myorigin=$myhostname


因此,它应该是“myserver.example.com”

它是否来自您在同一台服务器上控制的域?一些随机的第三方域或本地主机?如果您没有
sendmail.cf
您确定您的服务器正在使用sendmail处理其邮件吗?它是否来自您在同一服务器上控制的域?一些随机的第三方域或本地主机?如果您没有
sendmail.cf
,您确定您的服务器正在使用sendmail处理其邮件吗?