问题原文
原帖链接 · Diogo Jesus · CC BY-SA 4.0
Recently we received an odd mail coming from [email omitted] to [email omitted]
The problem is that address1 didn't send any email to address2. The email was sent using sendgrid. Sendgrid has to be in our SPF due to the use of freshdesk which uses their system.
I was able to recreate the situation with the following: - create a free sendgrid account with a fake email address ([email omitted]) - send a transactional email from: [email omitted] ([email omitted]) to [email omitted]. The email goes straight to spam but it stills delivered. However I would like to reject this email.
I have dkim for our principal server, and freshdesk (sendgrid), and SPF for our principal server and once again freshdesk.
I tried with dmarc to reject but the email is still being delivered. At this point I'm out of ideas and I don't know what could be missing.
If the email is sent by freshdesk then it's signed by company.com and if it's spoofed like I mentioned above it will be signed by sendgrid which is generating their own DKIM keys (apparently).
Our server runs in postfix with debian9. Thank you, Diogo Jesus
已采纳解答
原帖链接 · Allan Wallace · CC BY-SA 4.0
SPF / DKIM / DMARC won't necessarily solve this problem, perhaps better to find a way of adding a header (tag) to the freshdesk emails that you can use header checks to validate if the email is genuine.
i.e.
email delivered via sendgrid and tagged with the secret freshdesk tag is genuine,
email sent via sendgrid without the tag is not and can be binned.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
