Mail filter block blacklist using .TLD's regex not working (high load pmg-smtp-filter)

ronanc

New Member
Jun 9, 2025
2
0
1
Hi everyone!

We have 4 PMG nodes running in cluster, and i have added the following regex entries, but without success, on the logs i see the e-mail messages getting blocked by DNSBL and not by regex rules at the blacklist on Who Objects:

1749495191991.png


Our rules is configured this way:

1749495214825.png



Is my regex syntax wrong or may be the mail filter rules?

The point is that we received a bunch of thousands SPAM e-mail s coming from this .sbs domain for instance, and is being processed and getting blocked by DNSBL's in our PMG's, the server loads are going insane with many process of pmg-smtp-filter as screenshot below:

1749495988547.png


I need to get the blacklist by regex working to block some .tlds we need to block, this way, we can stop the spammers from this Tlds at the connection time, drop the transaction before, saving resources of hardware.


Any tip is very welcome!

Thank you all in advance!
 
nd is being processed and getting blocked by DNSBL's in our PMG's
Which DNSBL's are you referring to? - if the mails are blocked by postscreen in the mail-proxy this is the earliest where PMG offers such blocking.

The mail filter/rule system always runs in pmg-smtp-filter and will always use some resources (mails are first evaluated for the from/to/what/when and only after this is done the actions are taken - there is no real short-circuit in the mail-filter.

see also:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_whitelist_overview

please share some logs maybe they show room for improvement...