How to auto-delete emails matching blacklisted items?

Nikole

Well-Known Member
Jun 3, 2013
41
0
46
Hello all,

I have created a blacklist that contains domains that I don't want to quarantine them but completely delete/discard them as they arrive.
Is this possible?

Nikole
 
There is a rule in the default ruleset that does this?
* Who Object Blacklist (there you put the list of domains you want to discard) -> add this as From to the rule
* Action Object Block

I hope this helps!
 
Hi Stoiko,

Thank you for the response ;)
The rule was there but the emails were actually being kept in the quarantine.
I believe I "corrected" it by removing the public IP of the PMG from the "Trusted Networks".

I am correct in saying that PMG's IP should not be in the trusted networks?
 
The rule was there but the emails were actually being kept in the quarantine.
the default rule set does not have such a rule.

I believe I "corrected" it by removing the public IP of the PMG from the "Trusted Networks".

I am correct in saying that PMG's IP should not be in the trusted networks?
this sounds odd - usually the public IP of PMG (if it is directly configured on PMG) is added to the trusted networks (and ends up in postfix' mynetworks variable)

you can check in the logs what happened with the mails to the blacklisted domains - PMG does log which rule was used when processing a mail, and you can see when postfix get's a mail from a blacklisted domain.

One reason I could maybe think of is that the public IP you use is not configured on PMG itself, but does forward mails to it. (but as long as it does this on the external port (25) the rules should still apply)
 

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!