[英]Gmail automated unsubscribe emails - How to stop them?
當用戶取消訂閱 gmail 中的 email 時,似乎 gmail 向發件人發送了一個 email:
`subject`: "unsubscribe"
`body`: "This message was automatically generated by Gmail."
`to`: u+(somesuperlongrandomstring)@domain.tld
`from`: (Email of user who unsubscribed)
同樣,當用戶取消訂閱 Apple Mail 中的 email 時,Apple Mail 似乎會向發件人發送 email:
`subject`: (blank)
`body`: Apple Mail sent this email to unsubscribe from the message "(Subject of email unsubscribed from)".
`to`: u+(somesuperlongrandomstring)@domain.tld
`from`: Email of user who unsubscribed
我們已經使用 mailgun 來處理退訂,但截至 2022 年 3 月 28 日,來自兩家提供商的這些電子郵件現在通過我們的 email 路由發送。
有誰知道如何告訴 gmail 或 Apple Mail 不要發送這些電子郵件? 它們是多余的,因為 mailgun 已經按照您的預期使用list-unsubscribe
header 處理取消訂閱。
或者,有誰知道如何設置 Mailgun 以使這些消息不通過路由傳遞?
遺憾的是,Mailgun 沒有提供任何幫助。 但是查看他們的文檔和這些電子郵件的標題,似乎可以使用他們的路由來完全隱藏電子郵件。
三個線索是:
X-Apple-Unsubscribe:true
因此,您可以創建一個路由,使用custom route
捕獲和丟棄這些電子郵件,並將raw expression
設置為:
match_recipient("u\+(.*)@domain.tld") and (match_header("X-Apple-Unsubscribe", "true") or match_header('subject', 'unsubscribe'))
很遺憾 Mailgun 自己停止這樣做,但至少他們的工具有一個解決方案!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.