I have tried to search the forums, used all search engines I could think of, and tried my luck with the statistically empowered (LLMs) but I haven’t yet found a solution which works completely - or I might just be an idiot overseeing the obvious.
I am trying to setup rules, such that a special privileged user: “admin@mymail.com” is able to send/receive emails from all internal and external addresses - while all other *@mymail addresses can only send/receive mails from admin@mymail.com.
Some examples:
admin@mydomain.com -> any ✅
user1@mydomain.com -> user2@mydomain.com ⛔
user1@mydomain.com -> admin@mydomain.com ✅
someone@else.com -> user1@mydomain.com ⛔
someone@else.com -> admin@mydomain.com ✅
I could not find the correct settings in the admin interface (if they exist).
I’ve tried making my own postmap unsuccessfully, and creating a pair of recipient_restrictions.pcre and sender_restrictions.pcre, was only partially successful.
The closest I have gotten, was with the pcre file: I restricted all users to only be able to email the admin - but that included the admin itself, so it could not reply to the received email, nor could it email an external inbox.
Anyone know of a setting page I’ve missed, or am able to scold me on my incorrect use of pcre files - have knowledge of a fancy policy creation plugin of some kind that enables this behavior?
I don’t need complete solutions (though they would of course be appreciated as well), but would love if someone could point me in the right direction - because I’ve gotten myself rather lost.