How to stop all bounces

stevewilwerding

New Member
Apr 21, 2023
20
1
3
Our use case is that we send a lot of email with made-up from addresses (sytem-alerts@abc.com, etc.), and I want to configure Proxmox to drop all bounces.

From what I can tell, editing these two lines to this in the /etc/postfix/master.cf should do it:

bounce unix - - - - 0 discard
defer unix - - - - 0 discard

Is that accurate? What is the function of the master.cf.proto? Is that where I should be making the change?
 
note that you should use the templating system when you want to edit the postfix config: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
bounce unix - - - - 0 discard
defer unix - - - - 0 discard
the two lines look alright if you really want to turn off bounces (if you use the pmg for receiving real emails, check your local laws if suppressing bounces is ok!)

if you also block mails in the rule system there is an additional setting: "send ndr on blocked emails" in Configuration -> Mail Proxy -> Options

What is the function of the master.cf.proto?
this is the default example config shipped by postfix
in pmg the postfix config is generate from a template shipped by us (see the link above)