简体   繁体   English

使用PHP设置电子邮件反馈循环标头以处理垃圾邮件投诉(gmail)

[英]Setup a email feedback loop header with PHP for spam complaints (gmail)

I'm planning to send mass emails to gmail addresses via PHP mail function. 我打算通过PHP邮件功能将大量电子邮件发送到Gmail地址。 To track email spam complaints i'm trying to setup a feedback loop with PHP but i'm not receiving any response from gmail. 为了跟踪电子邮件垃圾邮件的投诉,我尝试使用PHP设置反馈循环,但没有收到来自Gmail的任何回复。 I've set header to PHP mail in the following format for PHP mail function: 我已将PHP邮件的标头设置为以下格式的PHP邮件功能:

$headers .= "Feedback-ID: CampaginABC:Customer123:CustomID:MyUniqueSenderID"; 

What are the best ways to track spam and bounce complaint Data? 跟踪垃圾邮件和退回投诉数据的最佳方法是什么?
Any Help would be greatly appreciated. 任何帮助将不胜感激。

Gmail Feedback Loop Source: Gmail意见回馈来源:
https://support.google.com/mail/answer/6254652?hl=en&ref_topic=7279058 https://support.google.com/mail/answer/6254652?hl=en&ref_topic=7279058

Feedback-ID header needs to be included in DKIM-Signature. 反馈ID标头需要包含在DKIM签名中。 If you are sending emails with Postfix and doing DKIM signing with OpenDKIM then you can configure it as follows : 如果要通过Postfix发送电子邮件并通过OpenDKIM进行DKIM签名,则可以按以下方式进行配置:

add "SignHeaders Feedback-ID" to /etc/opendkim.conf 将“ SignHeaders反馈ID”添加到/etc/opendkim.conf

and reload opendkim,postfix 并重新加载opendkim,后缀

/etc/init.d/opendkim reload /etc/init.d/opendkim重新加载

/etc/init.d/postfix reload /etc/init.d/postfix重新加载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM