pftq.com
Welcome! Please Login or Register!
December 04, 2024, 06:15:21 PM
Home Login Register
pftq Forums  |  Main  |  Blabberbox  |  42  |  Rejecting Spam via G-Suite 0 Members and 1 Guest are viewing this topic. « previous next »
Latest News!Lunar Trigger(Aug 27, 2023)
Pages: [1] Print
Author Topic: Rejecting Spam via G-Suite  (Read 288 times)
pftq
Administrator
*****
Offline Offline



Posts: 4204

WWW
« on: February 14, 2022, 02:47:07 PM »

If you have G-suite for @Gmail and are getting repeat spam with the exact same phrases, you can make a filter to hard reject them by using compliance rules in the Google Admin panel.
1) Go to Apps > Google Workspace > Settings for Gmail > Compliance
2) Add a rule under Content Compliance.
3) Check "Inbound" and "Internal - Receiving"
4) Set to "If ALL of the following match.." Add an expression to match and use advanced content match.  You can add multiple conditions to make sure it only affects spam messages.  I use the following as an example (this guy has been using the exact same name and message for repeat daily spam for years):
- Sender Header Contains "Aleksandr"
- Subject Contains "Предложение"
- You can also use regex expressions for matching - tip: start the expression with (?i) to make it case-insensitive.
5) Set "Do the following" to Reject.  For me, I opt to include a rejection message in case the sender is legitimate and should know to resend the email with different phrasing.
6) Click Show Options.  For account types to affect, check Users, Groups, and Catch-all.  Save.
7) Test both spam and non-spam messages to your domain to make sure it works as expected.
« Last Edit: February 14, 2022, 03:17:10 PM by pftq » Logged
Pages: [1] Print 
pftq Forums  |  Main  |  Blabberbox  |  42  |  Rejecting Spam via G-Suite « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines | RSS Feed Valid XHTML 1.0! Valid CSS!
Page created in 0.1 seconds with 22 queries.