我使用postfix在LAMP服务器上安装了SPF。 但由于某种原因,我得到这个错误
Received-SPF: softfail (mta1070.mail.re4.yahoo.com: domain of transitioning [email protected] does not designate 1.1.1.1 as permitted sender)
我有两个问题:
1)我怎么麻烦拍这个错误
2)我一直在查看我的configuration文件,试图将[email protected]更改为[email protected],因为anotherurl.com具有正确的SPF TXTlogging。 我去哪里去改变这个? 我尝试编辑/etc/postfix/main.cf下的myhostname,但它没有做任何事情。
由于您是通过PHP发送的,因此您需要正确设置标题并使用邮件function的最后一个参数。 像下面的东西将工作
<?php $fromemail='[email protected]'; $to="[email protected]"; $subject="this is an email"; $headers = 'MIME-Version: 1.0' . "\r\n".'Content-type: text/html; charset=UTF-8'."\r\n".'From: '.$fromemail."\r\n" . $headers .= "Reply-To: ".$fromemail."\r\n"; $headers .= "Return-Path: ".$fromemail."\r\n"; $extra='-r '.$fromemail; mail($to,$subject,$message,$headers,$extra);