dravpuso44681 2011-12-15 19:47
浏览 118
已采纳

php mail()转到垃圾邮件,但是当通过SMTP服务器发送时它工作正常吗? [关闭]

I am currently setting up my webserver so then i can send emails via PHP Code, the problem i have is that the emails sent via php mail() always send to my gmail spam where as when im sending emails via the SMTP Server the same VPS has on it on Gmail it dont send to spam.

Is their anyone that can help with this?

Updates:

Sending Via Ryan@Ryanteck.org.uk & Noreply@Mc-Serverlist.co.uk For PHP Mail() (Same happens with ryan@ryanteck.org.uk)

When Sent Via PHP Mail() Or Webmin Email It Sends To Spam

When Sent Via SMTP Server Via Gmail it sends ok

PHP Mail Raw Message : http://pastebin.com/TP2UfDP7 (This is the Noreply@Mc-Serverlist.co.uk)

Webmin Email System : http://pastebin.com/2VWvDd7v

Gmail SMTP : http://pastebin.com/wgewGnmk

  • 写回答

3条回答 默认 最新

  • duanlvji4780 2011-12-16 05:39
    关注

    Your vps doesn't have rDNS configured and the HELO points to a different ip. inconsistencies in HELO and missing rDNS trigger many spamfilters.

    Received: from ryanteck.org.uk ([95.154.250.75])

    Host 75.250.154.95.in-addr.arpa. not found: 3(NXDOMAIN)

    ryanteck.org.uk has address 95.154.250.165

    Set a HELO Hostname whose A-Record points back to your VPS and configure the rDNS (PTR) to the same hostname.

    Example:

    • Create a new A-Record 'vps.ryanteck.org.uk 95.154.250.75'
    • Set the HELO to 'vps.ryanteck.org.uk'
    • Set the reverse DNS (PTR) for 75.250.154.95 to vps.ryanteck.org.uk

    Also your senderdomains have somewhat strange "TXT" records:

    dig txt mc-serverlist.co.uk +short 
    "95.154.250.165"
    dig txt ryanteck.org.uk +short
    "95.154.250.165"
    

    you may want to change these into correctly formatted SPF records, eg.

    v=spf1 ip4:95.154.250.165 ip4:95.154.250.75 ~all
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器