Content-Type custom rule

Danúbio Marinho

New Member
Nov 20, 2018

I identified in a header of a phishing message a image name pattern. Below follow an example:

Content-Type: image/jpeg;

Are 13 numbers of 0 the 9. Then, i created a custom rule to add a score for theses messages. Bellow has an example:

header JPEG_CT Content-Type =~ /name\=\"\d{13}\.jpg\"/i
score JPEG_CT 5
describe JPEG_CT Blocks phishing messages requesting for ransom

But its not working :(

This rule is correct?

the rule looks good. Did you restarted the pmg-smtp-filter?:
systemctl restart pmg-smtp-filter.service

The rule is not working. The score doesn't appear in spam info.

I tried to implement using mime header. The new rule is below:

mimeheader JPEG_CT Content-Type =~ /name\=\"\d{13}\.jpg\"/i
describe JPEG_CT Blocks phishing messages requesting for ransom
score JPEG_CT 5.0

But also not working. I'm not sure how it works. The body of suspicious message is an image.

It is necessary enable some plugin for this rule to work?


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!