Filtering by word in subject and/or body?

Aug 15, 2018
43
3
13
46
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
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
5,985
826
148
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!
 
Aug 15, 2018
43
3
13
46
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?
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
5,985
826
148
I'm pretty sure that you need to configure a recursive DNS server only for PMG - then the spam detection should become much better!
 

EUSAN

Member
Jul 18, 2019
13
0
6
30
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 your own in 60 seconds.

Buy now!