Custom-domain DKIM signing for internal-to-internal emails
Support DKIM Signing on Internal-to-Internal Messages (Google Workspace EU/US) to Prevent DMARC Failures and Gemini Blocks
Allow INKY to apply a valid, domain-aligned DKIM signature on internal-to-internal emails processed by OBX and IPW in Google Workspace (EU/US) deployments, after INKY modifies the message body with disclaimers, internal banners, or link rewriting.
Context and technical root cause: in a standard Google Workspace + INKY deployment (with Inbound Gateway configured per INKY documentation, including Google IP ranges and "Automatically detect external IP" enabled), a major authentication gap occurs whenever remote or mobile employees send emails using third-party SMTP clients (such as Apple Mail on macOS or native iOS Mail via smtp.gmail.com) from dynamic residential or cellular IP addresses:
Google Workspace records the user's dynamic residential or cellular IP in the initial Received header (unlike Gmail Web or the official Gmail mobile app).
External workflow (X-Inky-Workflow: Outside) works properly: OBX modifies the message (e.g., X-Inky-Inserted-Signature: True), strips Google's original DKIM signature, and relays the email back through smtp-relay.gmail.com, where Google Workspace cleanly re-signs the modified message with DKIM (dkim=pass, dmarc=pass).
Internal workflow (X-Inky-Workflow: Inside, including internal colleagues CC'd on external threads) breaks authentication: OBX modifies the body, strips Google's original DKIM signature, and routes directly to IPW (obx-outbound -> gs.ipw -> mx.google.com), bypassing smtp-relay.gmail.com.
Even when bypassing OBX completely so that Google's original DKIM signature reaches IPW intact, IPW still modifies the message body by injecting the blue Internal banner and rewriting links, which invalidates Google's DKIM body hash (dkim=neutral / body hash did not verify). Although IPW seals ARC (arc=pass, i=2 dkim=pass), Gmail still flags the email as unauthenticated because direct DKIM fails and SPF evaluates to softfail against the sender's dynamic residential or mobile IP.
Business impact:
Every internal email sent from Apple Mail or native iOS Mail off-VPN displays a red question mark and warning banner in Gmail, creating alert fatigue and training users to ignore legitimate security warnings.
Critically, this authentication warning triggers Google's security guardrail and blocks Gemini and Gemini Enterprise inside Gmail ("I can't use this email message because it's sensitive or suspicious") on all affected internal emails and external threads with internal CCs.
The spf.clients DNS workaround is not viable for remote employees on dynamic residential ISPs or cellular 4G/5G networks.
Requested enhancement: add support for custom-domain DKIM signing on internal-to-internal emails (at the exit of IPW, after all OBX/IPW body modifications are complete) so that messages delivered back to Google Workspace via the Inbound Gateway carry a valid, domain-aligned DKIM signature (d= customerdomain.com).
As a complementary option, provide a non-modifying / silent mode for clean internal-to-internal messages in IPW (scanning for threats without injecting banners or rewriting links when the email is clean, thereby preserving Google's original DKIM signature), which would also greatly benefit Google Workspace + Gemini Enterprise customers.
Log in to comment and vote
No comments yet
Be the first to share your thoughts.