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!
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!