Block email when two fields are equal to each other

Fathi

Well-Known Member
May 13, 2016
125
3
58
52
Tunis, Tunisia
Hi,
Some people are sending spam to my users from their own emails: Spam appears to be sent from the receiver address. This causes some panic as people think their accounts have been hijacked.
How could i block email when the sender=the receiver (From=To). I have rules taht match field to a static value or to a regular expression, but how to match to fields.
I already tried to block outside email sent from internal addresses, as smtp ports are open only on internal network, but this doesn't seem to stop identity thieves.
TIA
 
Please post the logs of such a mail - maybe there is a spamassassin hit which is fitting for this)
 

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!