If I have a user who wants all mails deleted or forwarded to some mailbox, etc… I see how to do that in their usermin.
What if someone wants to do it at the domain level though? (Say, all mail coming to anyone in the domain with “complaint” in the subject should be copied to the boss’s email address for example?)
neither do you need to research procmail recipes and build a recipe that suits your needs.
Note: if you look in the postfix main.cf file you will see
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
which gives it away. I’m not sure how procmail-wrapper works, does it read /etc/procmailrc execute those recipes then pass the results to (perhaps) /etc/webmin/virtual-server/filter.pl to execute the user procmail recipes, the answer to that is above my pay grade
Does anybody happen to know if hand-edited /home/[the-domain.com]/homes/user/.procmailrc rules are processed if they aren’t visible in the GUI?
The GUI has some limits that procmail rules don’t, for example you can bounce mail with a procmail rule but I don’t see it in the GUI. If I copy a working bounce procmail rule from a different (non-virtualmin) mail server it does not display in the GUI. If I add another rule to the GUI (or write one that conforms to its norms) it appears as the next rule in the GUI… so the GUI ignores rules that don’t fit its mold… but does the procmail rule itself get ignored?
(I know I can test but thought someone might just know.)