We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Please use the mailcow control center to control Postfix' recipient restrictions.
Custom restrictions can be added manually, but will be overwritten whenever you use the mailcow control center to toggle restrictions.
To make your changes permanent, open /usr/local/sbin/mc_pfset and add your restriction on line 13:
/usr/local/sbin/mc_pfset
SET_PFCONF=("permit_sasl_authenticated" "permit_mynetworks" "my_custom_restriction" $2 "reject_unauth_destination")
mailcow does reset your changes when applying an upgrade.