Can I create a rule based on a text in the mail?

digiweb

Member
Mar 6, 2022
46
3
8
40
Can I create a rule based on a text in the mail?
For example: If the content of the mail message says "mailbox storage is almost full", I want to quarantine it.

Sample spam mail is attached.
 

Attachments

  • incoming_mail.zip
    7.4 KB · Views: 1

hata_ph

Well-Known Member
Nov 13, 2019
828
168
48
43
Use spamassasin custom config.

Code:
body           CLICK_BAIT      /\bclick here\b/i
describe       CLICK_BAIT      Possible click bait
score          CLICK_BAIT      1.0
 

digiweb

Member
Mar 6, 2022
46
3
8
40
Where exactly should I write this code?
can you give the file path?

Is it not possible for me to do this through the administration panel?
 

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!