Mail whitelisting for specific mailboxes

SYSTEM INFORMATION
OS type and version Debian 11
Webmin version 2.111
Virtualmin version 7.20.2
Webserver version Apache 2.4.61
Related packages
Postfix - 3.5.24
Dovecot - 2.3.13
Spamassassin - 3.4.6

We are setting up several mailboxes on one of our virtualmin domains that will be tied into a service. I am looking for the best way to whitelist what domains can send to those specific mailboxes!

I can see it’s possible to set filters from within usermin but there is the bottom entry “Always deliver to your inbox” which sorts of defeats the objective!

making sure the checkbox it not ticked, I guess will stop the filter list getting to the last entry


it implies that all filter processing ends at this point

After a lot of experimentation, if i add the domains in and then make a new “Always” rule with a different option than deliver to inbox as the last rule, it does what I need.

It also stores this in the users home folder in .procmailrc so I can copy the details from there into the other user accounts once i’ve finished the setup in this account!