# Gmail spam flagging

**URL:** <https://discourse.mailinabox.email/t/gmail-spam-flagging/16286>\
**Category:** Maintenance\
**Created:** [March 2, 2026, 3:19pm UTC](https://discourse.mailinabox.email/t/gmail-spam-flagging/16286 "2026-03-02T15:19:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheRealLifeboy](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/thereallifeboy/32/2492_2.png) [@TheRealLifeboy](https://discourse.mailinabox.email/u/TheRealLifeboy)\
**Post date:** [March 2, 2026, 3:19pm UTC](https://discourse.mailinabox.email/t/gmail-spam-flagging/16286/1 "2026-03-02T15:19:12Z")

</div>

My domains are not new and many mails have been send to gmail and whitelisted (by saving the contact in gmail), yet persistently google dumps our mails into spam.

I have now found their postmaster tool and added our domains and validated them. When I run the troubleshooting process they provide, the give this list that our mail should adhere to

Confirm that you:

- Sign messages with [DKIM](https://support.google.com/a/answer/174124). Gmail doesn’t authenticate messages signed with keys that use fewer than 1,024 bits.
- Aren’t using the DKIM length tag (`l=`) in message headers. This tag makes messages vulnerable to spoofing.
- Publish an [SPF record](https://support.google.com/a/answer/33786).
- Publish a [DMARC policy](https://support.google.com/a/answer/2466580).

The DKIM length tag is the only one that is unclear to me. The rest are there.

Can someone help me with this? Does MiaB do this as part of the default setup?

---

<div class="post-metadata">

**Author:** ![KiekerJan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kiekerjan/32/2339_2.png) [@KiekerJan](https://discourse.mailinabox.email/u/KiekerJan)\
**Post date:** [March 2, 2026, 4:41pm UTC](https://discourse.mailinabox.email/t/gmail-spam-flagging/16286/2 "2026-03-02T16:41:57Z")

</div>

Mail-in-a-Box does all those things. Another thing that is important is that you set PTR correctly for both IPv4 and IPv6 addresses.

---

<div class="post-metadata">

**Author:** ![kumarrajbabbar](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kumarrajbabbar/32/3081_2.png) [@kumarrajbabbar](https://discourse.mailinabox.email/u/kumarrajbabbar)\
**Post date:** [March 18, 2026, 7:29pm UTC](https://discourse.mailinabox.email/t/gmail-spam-flagging/16286/3 "2026-03-18T19:29:17Z")

</div>

Gmail is warning you about the optional DKIM `l=` (length) tag, which signs only part of the message body; that leaves the rest of the body unsigned and vulnerable to modification, so large providers now treat messages with `l=` as weaker or even effectively unsigned. To check whether this affects you, look at a raw message header in Gmail and inspect the `DKIM-Signature` line: if there is no `l=` tag, you can ignore that bullet; if it is present, you’ll need to ask your mail software or provider to regenerate your DKIM keys and signatures without `l=` and keep SPF and DMARC in place as Gmail recommends.

---

<div class="post-metadata">

**Author:** ![KiekerJan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kiekerjan/32/2339_2.png) [@KiekerJan](https://discourse.mailinabox.email/u/KiekerJan)\
**Post date:** [March 18, 2026, 7:58pm UTC](https://discourse.mailinabox.email/t/gmail-spam-flagging/16286/4 "2026-03-18T19:58:15Z")

</div>

That is not applicable to Mail-in-a-Box

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [April 27, 2026, 7:58pm UTC](https://discourse.mailinabox.email/t/gmail-spam-flagging/16286/5 "2026-04-27T19:58:38Z")

</div>

This topic was automatically closed 40 days after the last reply. New replies are no longer allowed.
