Filtering by word in subject and/or body?

Robson Rissato

Well-Known Member
Aug 15, 2018
55
11
48
49
is it possible to filter spam words in the body of the email?

Anyone have any suggestions on how to do this?

for example I would like to send to quarantine when you have a word to unsubscribe or click here
 
yes it is possible, though we usually discourage it! Filtering on a simple word leads to many false positives in our experience.

Better try to check that your PMG configuration is really working well - and that you're not running into any ratelimits of RBLs (check the mail.log for URIBL_BLOCKED spamassassin hits).

if you really want to block certain words you need to create a custom spamassassin configuration for that - https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_custom_spamassassin_configuration

and a fitting body rule - see https://wiki.apache.org/spamassassin/WritingRules (which currently seems down - but a google search for writing spamassassin rules should get you going)

hope this helps!
 
I understand perfectly

many spam advertising emails are still going on,
could you send, or post a few headers for a help?

or even my mail.log?
 
I'm pretty sure that you need to configure a recursive DNS server only for PMG - then the spam detection should become much better!
 
is it possible to filter spam words in the body of the email?

Anyone have any suggestions on how to do this?

for example I would like to send to quarantine when you have a word to unsubscribe or click here
Companion, did you manage to block the emails that you indicate ??
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!