PMG rule: quarantine emails from gmail.com if recipient count exceeds 3

You can add a rule in custom.cf that will add 5.0 points if the sender's address is @gmail.com and the recipient's address is 3+
Code:
header        __FROM_GMAIL_ADDR    From:addr =~ /@gmail\.com$/i
header        __TO_MANY_RCPT        To =~ /(,[^,]*){2,}/
meta        FROM_GMAIL_MANY_RCPT    __FROM_GMAIL_ADDR && __TO_MANY_RCPT
describe    FROM_GMAIL_MANY_RCPT    Gmail sender with 3+ recipients in TO
score        FROM_GMAIL_MANY_RCPT    5.0
 
  • Like
Reactions: Konstantin2000