我使用PHP发送使用sendmail的电子邮件。 我注意到有些电子邮件没有在/ var / log / maillog中传递下面的错误
例1
stat =未知发件人
例2
stat = Deferred:450 4.1.8 [email protected]:发件人地址被拒绝:未find域
例3
stat = Deferred:421无效的发件人域'testname.testurl.net'(错误configuration的dns?)
有关服务器的信息…
主机名 – testing名称
/ etc / hosts文件
127.0.0.1 – localhost.localdomain主机名
xxx.xxx.xxx.xxx – testname.testurl.nettesting名称
:: 1 – localhost6.localdomain6 localhost6
运行Centos 5.8
您必须确保所有电子邮件相关的名称和域名都存在,并且可以parsing您的IP地址。 反之亦然IP地址应该被parsing到您的域。