Fix parsing real sender address from Google Groups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • erykjakubik
    Junior Member
    • Mar 2026
    • 11

    #1

    Fix parsing real sender address from Google Groups

    Hi,

    I'm running into an issue where the CRM isn't picking up the real sender's email address.

    I use Google Workspace and have my CRM fetch emails from an inbox that subscribes to a Google Group. Because of strict DMARC policies, Google automatically rewrites the sender's address to show as "Sender Name via Group" (e.g., idosell@brandsmanago.pl).

    I can't bypass this using routing rules in Google Admin because it would break DMARC/DKIM and cause the emails to bounce.

    However, Google always keeps the real sender's address in the X-Original-From and Reply-To headers. Could you update your email parser to check the X-Original-From header first, before defaulting to the standard From header?

    Adding this simple fallback would fix the issue completely for anyone using Google Groups.

    For now, I can work around this by leaving the Google group and setting up a redirect from the console to that user account—I'll manage somehow

    Thanks!
    Eryk Jakubik
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9742

    #2
    Hi,

    Technically it's not a bug, it's not something that we should fix. Maybe we should consider having an optional parameter to enable this behavior (which is not standard).

    You can bind a custom implementation for the Importer interface. It should be a few line of codes to achieve I believe.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9742

      #3
      > Could you update your email parser to check the X-Original-From header first

      We can't do it. It would be a security vulnerability if we did it.

      Comment

      • erykjakubik
        Junior Member
        • Mar 2026
        • 11

        #4
        Okay, thank you.
        I think I've found a solution on the Google Workspace side. I'll share the details as soon as I figure everything out

        Comment

        • erykjakubik
          Junior Member
          • Mar 2026
          • 11

          #5
          I created a new alias for the user.
          In the user's account, I created a filter for emails that I label and mark as read.

          Then, in the admin workspace, I create a compliance rule that forwards emails received at the previously created address to a Google group.

          I connect EspoCRM as a separate account and configure it to retrieve emails from a specific label.
          Thanks to the developers for the option to retrieve emails by label.

          Comment

          Working...