mail.cf.in default file

Sep 17, 2020
315
20
38
Hello All,

I'm trying to find out where/how I can get an original main.cf.in file.
I believe I kept a copy, however I can't be sur so I want to verify.
Running 8.1.2

Thank you!
 
I have the same template version, so thats good, but the bigger issue is getting a pre RBL email to go through.
Sometime legit sending servers get blacklisted, but I need to whitelist those senders.
Normall I would do something like this:
Code:
smtpd_recipient_restrictions = permit_mynetworks,
                               check_sender_access hash:/etc/postfix/sender_access,
                               reject_rbl_client zen.spamhaus.org,
                               ...

using sender_access I could allow a list of emails or domains. But in the template, RBL's are handled differently.
is there a built-in method of whitelisting besides IP numbers, prior to the RBL?

This is my template version

Code:
postscreen_access_list =
        permit_mynetworks,
        cidr:/etc/postfix/postscreen_access

# Jack - Above RBL

postscreen_dnsbl_sites = b.barracudacentral.org,bl.spamcop.net,all.spamrats.com,bl.spameatingmonkey.net,psbl.surriel.com,bl.score.senderscore.com
postscreen_dnsbl_threshold = 1

# Jack - below RBL

postscreen_dnsbl_action = enforce
postscreen_greet_action = enforce

smtpd_sender_restrictions =
        permit_mynetworks
        reject_non_fqdn_sender
        check_client_access     cidr:/etc/postfix/clientaccess
        check_sender_access     regexp:/etc/postfix/senderaccess
        check_recipient_access  regexp:/etc/postfix/rcptaccess
# Jack
        reject_unknown_reverse_client_hostname
# end Jack reject_unknown_sender_domain

smtpd_recipient_restrictions =
        permit_mynetworks
        reject_unauth_destination
        reject_non_fqdn_recipient
        check_recipient_access  regexp:/etc/postfix/rcptaccess check_sender_access  regexp:/etc/postfix/senderaccess
        # Jack
        check_sender_access     hash:/etc/postfix/sender_reject_domain
        check_client_access     cidr:/etc/postfix/sender_reject_ip
        check_recipient_access  hash:/etc/postfix/sender_reject_invalid
        # end Jack
 

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!