Emails from gmail to an alias of another gmail account bounce #4356
Replies: 4 comments 11 replies
-
Case 2 errors are quite clear about DKIM DMARC and SPF failing. As they should since you're trying to send mail as if you are authorized to do so with I'm not sure why case 3 would work, are you using Gmail as an authenticated relay? (did you configure for Gmail as per our docs?) That should allow you to send on behalf of the gmail account (personal account, or multiple when a workspace), otherwise gmail should refuse anyone pretending to be gmail as the sender when mail arrives on their servers at port 25.
Did you create a DMS account (
I think in the forwarding of mail sense, when you are sending from gmail as the client it may allow this kind of relay, but it shouldn't if you sent a mail from DMS with Perhaps using aliases to forward mail is behaving differently in some way, I only know of Postfix resolving the alias to the actual recipient to deliver the mail to, where mail arrives to DMS at a domain you own and potentially resolving it to one you do not own (to permit relaying it, which is normally forbidden for mail arriving on port 25). Aliases also work as a sender address, in that they resolve to their target too IIRC, so sending mail from The logs mention
Case 2 also has this error, which then follows with Postfix relaying a bounce mail from Gmail with ( Case 3 has you flip this around where you send with The quoted error for When mail arrives for a recipient Postfix will ask Dovecot if the address has exceeded it's allowed storage quota and this happens before any alias is resolved. We have a workaround in place for non-external aliases, where we create dummy accounts in Dovecot that point to the alias recipient address (actual mailbox account), and this allows Postfix to correctly verify the quota status, but in this case you have an alias to an external mail domain ( I can't recall if the This is a lot of guess work on my part.. I'm pretty sure you'll find with the The sender address when relaying mail through DMS via the alias address is different AFAIK, but I'm not familiar enough with that feature to explain why. Please ensure that |
Beta Was this translation helpful? Give feedback.
-
@polarathene or anyone else: is there a better way to relay incoming email from one or more addresses to a gmail address? Should I not be creating an alias? I don't intend to relay all mail through gmail smtp, I simply wish to redirect incoming mail to some gmail addresses as a destination. Are there env variables I should dig into? At the mention of envelopes above, I'm trying this env change
|
Beta Was this translation helpful? Give feedback.
-
From your Case 2 logs with
That Gmail bounce mail message logged directs you to their docs about requirements for sender addresses, which has apparently been in place since Feb 2024. There is a requirement for ARC when forwarding mail: Your rDNS / PTR check is valid since the IP from DMS should match the IP that the PTR record resolves back to, despite the DNS name differing from the one assigned to DMS (non-issue). Additional Gmail docs links: Given that it's trying to verify SPF for the sender gmail address, you likely need ARC signing in place like I pointed out earlier. You already have Rspamd setup, so this should be as simple as adding a file at
Adjust the values to valid ones for your config, it should be similar to the DKIM rspamd config. One other consideration is that I have noticed DMS v14 has Rspamd 3.8.4, but newer releases have had some bug fixes regarding ARC, so if this still does not work try with the DMS |
Beta Was this translation helpful? Give feedback.
-
@curiousercreative DMS v15 is now out. Did you manage to resolve this? Did configuring Rspamd with ARC help? |
Beta Was this translation helpful? Give feedback.
-
I've created a few aliases for gmail accounts before and not noticed this problem, so perhaps related to DKIM for new domains, hard to verify but also not all messages fail to forward. I've observed three result cases to describe further. In all cases, DMS appears to function the same (at least it relays a message to GMail), but GMail does not always accept (depending on sender it appears). To start, we need some DMS managed aliases
We also need at least one other mock gmail account: [email protected]
Case 1: sender is not gmail account, delivery succeeds (every time I've observed)
When the sender is another DMS mailbox or any other non-Gmail sender, the delivery seems to always succeed. For example, [email protected] as sender will deliver as expected.
Case 2: sender is gmail account, delivery fails (every time I've observed)
When the sender is some specific Gmail account, the delivery seems to always bounce with logs similar to
Case 3: sender is gmail account, delivery succeeds
With another specific gmail account, delivery seems to always succeed with logs similar to:
Beta Was this translation helpful? Give feedback.
All reactions