Rejecting Google Groups Spam Mail with Stalwart Mail (Full Config & Rationale)

Google Groups became our biggest spam source. Because posts are relayed by other tenants, DKIM/SPF often look fine and simple filters under‑react. We solved this by rejecting all Google Groups messages during SMTP. That stops the flood before Inbox/Junk and returns a clear 5xx to the poster.

What you have to do in the Stalwart UI

  1. Create one rule (Spam filter → Rules → Add)

    ID:

    Scope / Event:

    Priority:

    Click Add condition and add these rows (note the quotes in the then field):

    • if then
    • if then
    • if then
    • if then
    • if then
    • if then
    • if then

    Important: the tag in then must be quoted like

    or the UI will treat it as a variable and error.

  2. Create one score/action (Spam filter → Scores & Actions → Add)

    Tag name:

    Score or action:

Immediate effect

  • Group posts are rejected during SMTP with a 5xx. Nothing is stored; nothing to triage.
  • Posters see a bounce and can contact us directly instead of broadcasting via lists.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.