Score:0

Block spam mail from forwarded domain

cn flag

I get a lot of spam mail at my Gmail account. I also get a lot of important mail at my Gmail account.

The spam email is coming from a handful of domains.

I have Gmail forwarding all email to my postfix server with MX records correctly setup.

I have postfix pcre setup.

Looking for some command line magic to automatically delete forwarded mail originally from domain X (not gmail.com) on my postfix server.

Score:0
cn flag

I think I was able to solve it with body_checks

# /etc/postfix/body_checks
/domainx/ DISCARD

The second file I edited was:

# /etc/postfix/main.cf
body_checks = pcre:/etc/postfix/body_checks

Followed by:

sudo systemctl restart postfix
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.