![]() |
Gmail silently discards forwarded email for sender domains with SPF record "-all"
I have notced that Gmail sometimes(?) discards email forwarded mail if the sender domain has an SPF record that contains "-all". The real problem is that Gmail accepts the message but never delivers it, not even to the spam folder. This happens even if the forwarding service, in this case Fastmail, uses SRS rewriting.
Does anyone know a way around this? Peter |
What using the SPF soft fail "~all" ?
|
I have no control over the SPF records of the domains from which I receive mail. It's these domains that have -all, not my own domain.
|
Gmail seems to not reject SPF hardfail (at least if DKIM passes)
Are you sure that the messages are not being delivered to your Gmail account but were delivered to your Fastmail account? If you send test messages from your Gmail account to your Fastmail forwarding address, they will not appear in your Gmail Inbox. You must look in All Mail in your Gmail account to see these messages, which are tagged as from me. Do you also deliver them to your Fastmail account so you can see them there?
I sent various test messages to Fastmail aliases, one which used SRS and another which did not use SRS. All of these were delivered to my Gmail Inbox, even when I sent with From set to something @ example.org, a standard test address which has SPF set to v=spf1 -all (which rejects all messages from that domain with hardfail). It appears to me that Gmail accepts messages which fail SPF with either softfail or hardfail as long as DKIM passes. I can't easily generate a test message with DKIM failing, so I'm not sure what happens if DKIM fails. So my guess is one of these is happening:
|
Hi Bill,
The messages (and there are several, from several different senders) are delivered to a Fastmail account as well as forwarded to Gmail, so I can tell for certain when a message hasn't made it to Gmail. I know about the Gmail->Fastmail->Gmail issue, so I send test messages from an external provider, e.g. Outlook.com. I tried your test with example.org as well, and sure enough it made it through to Gmail. I guess that rules out guesses 1 & 2, and leaves some undocumented rule that silently discards some messages. Le sigh. Peter |
Peter, you might look for a lack of successful DKIM signing on messages delivered to Fastmail but not making it to Gmail. Google might block messages which SPF hardfaiil if they have no other reputation features.
If a Google rejects them at the SMTP acceptance stage, I would assume that if SRS was used that Fastmail would in form the sender (not the FM account). Do you know if any sender receives a message disposition notice from Google? If you can come up with some relatable test that fails, Fastmail could examine their logs to see how the Google receiving server is responding. Unfortunately, I can find no currently maintained list showing SPF and DKIM policies for various email services. Bill |
petergh,
I used to use Gmail even for semi-serious mail, and what made me move was that Gmail would sometimes discard good emails which I wanted to receive completely silently - no notification, nothing in the spam folder. I never did the research to try to find out which emails were being rejected; for all I know, it may have been some problem with authentifications, though the emails involved were from reputable sources who used reputable providers. Good luck. David. |
Gmail will sometimes discard without notice email which fails DMARC. I believe this normally happens only with major companies which have arranged with Gmail to do this, e.g., Paypal, banks, but perhaps Gmail does it more widely now.
For those unfamiliar with it, DMARC is a way for the owner of a domain to protect the domain name (like Paypal, which used to be frequently spoofed), by publishing a policy as to what to do with email that fails SPF or DKIM. Although it is more complicated than this, roughly speaking if (1) the domain owner publishes a DMARC policy, and (2) the email does not pass either SPF or DKIM on the domain in the From field (not Return-Path), and (3) the policy says to discard email which fails DMARC, then the domain owner is asking the receiving email system (e.g., Gmail, Hotmail) to discard the message. Other policies can be published too, for example to quarantine the message. I'm not sure that this is actually happening to you, though. As I think someone mentioned, if you use your own account to send to yourself on Gmail, its duplicate suppression policy will ensure that you never see the received copy. |
Let me just reiterate: I am *not* sending from my Gmail account to myself. I am sending test messages from an external account, so suppressed duplicates are not the issue here.
It seems like I'm not the only one experiencing this issue, judging by some of the posts in this thread on WHT: http://www.webhostingtalk.com/showthread.php?t=1247647 I just wish I could find some kind of documentation that will tell me exactly when Gmail will silently gobble up a message but not deliver it, but I guess that would aide spammers, too, so probably no luck with that. |
Have you checked in All Mail for the missing e-mail?
|
Yes, and it's not there.
|
As lane said, DMARC provides a way for a sender domain to specify what they would like to happen for messages which fail both DKIM and SPF.
Bill |
Quote:
Is it possible somehow that Gmail is in fact giving a bounce response, but it is not making it back to yourself at the original test account? I do have one address (my wife's) at my domain forwarded with SRS from Fastmail to Google Apps (essentially Gmail), so I tried a test. I sent a test message with an executable attachment (which will be refused by Gmail) from an Outlook.com account to that address at my domain (hosted at Fastmail), which directs one copy to a Fastmail subfolder for insurance purposes and sends a second with SRS to Google Apps. The copy to Google Apps was indeed refused with a bounce message back to Fastmail (it was sent to the address SRS had rewritten as "SRS0=mr/t=WD=outlook.com=xxxxxx@srs.messagingengine.com") and Fastmail properly sent it back to the originating Outlook.com account. So the bounce message appeared in the original sending account, and everything worked properly as far as I can see. So there are many links in the chain for a forwarded message:
|
Thanks for your valuable input, everyone, and lane and Bill in particular. It's much appreciated.
I've managed to find a message that was delivered to my wife's Fastmail account, but never made it to Gmail. These are the full headers: Code:
Return-Path: <international@emarsys.net> https://dmarcian.com/dmarc-inspector/nyheder.bilka.dk However, pasting the message into an online DKIM validator (e.g., https://9vx.org/~dho/dkim_validate.php), it looks like the signature checks out. Since forwarding from FM doesn't modify the DKIM signature, it should also check out at Gmail's end. I'm unable to tell if the sender of this particular message received a bounce or not. They may have, or they may not. Any thoughts? |
Just for the sake of clearing up any doubt, here's a link to Gmail's DMARC page that clearly states what is required for a message to fail or pass the DMARC test:
https://support.google.com/a/answer/2466580?hl=en "A message must fail both SPF and DKIM checks to also fail DMARC. A single check failure using either technology allows the message to pass DMARC." |
All times are GMT +9. The time now is 11:36 PM. |
Copyright EmailDiscussions.com 1998-2022. All Rights Reserved. Privacy Policy