[pfx] Re: Google groups spam

Christos Chatzaras via Postfix-users <[email protected]>
Newsgroups gmane.mail.postfix.user
Message-ID <[email protected]>

> On 4 Apr 2026, at 21:33, Eugene R via Postfix-users <[email protected]> wrote:
> 
> Hello!
> 
> I am sorry if this is off-topic. I hope people here could help.
> 
> Recently I am getting lots of (mostly backscatter) spam via Google Groups lists. At least, several screens of service headers look legitimate at first glance, although the listed group URL does not work and the group itself cannot be found. The messages come to various non-Google accounts.
> 
> I wonder
> (1) Can something be done about this via a normal reporting process?
> (2) What is a reasonable way to filter such messages?
> 
> Do you have any suggestions?
> 
> Thanks a lot
> Eugene

Add the following to main.cf:

header_checks = pcre:/usr/local/etc/postfix/header_checks
Then create or update /usr/local/etc/postfix/header_checks with:

/^X-Google-Group-Id:/i REJECT Mail from Google Groups is not accepted
This rejects messages containing the X-Google-Group-Id header, which is added to emails sent through Google Groups.

_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.