pmg 6.4 block every mail without rDNS positive

Oct 4, 2021
1
0
1
34
Hello Proxmox forum,

I want to set up a rule in my pmg 6.4 that block every mail without a positive rDNS check.
Do you have any idea how i can implement this ?

Code:
--- /etc/mail/spamassassin/pmg-scores.cf    2020-06-23 10:38:04.726379232 +0200
+++ /var/cache/pmg-scores.cf    2021-10-04 14:40:14.532178031 +0200
@@ -2,5 +2,6 @@
 score KAM_LAZY_DOMAIN_SECURITY 0.500
 score KAM_LINKBAIT 1.750
 score MISSING_MIMEOLE 1.000
+score RDNS_NONE 0.000
 score SPOOFED_FREEMAIL 1.000
 score URIBL_ABUSE_SURBL 2.500

Do you think this is the right way with the RDNS_NONE custom score?


Best Regards,
Marco
 
This is one way to do that (which also gives you the opportunity to not right out block it, but also simply assign it a higher spamassassin score).

Alternatively - just enable 'Reject unknown clients' in GUI->Configuration->Mail Proxy->Options - see http://www.postfix.org/postconf.5.html#reject_unknown_client_hostname
for the effect on the postfix config

I hope this helps!
 

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!