I recieve mail from a server where I can specify one
.forward mail where all mails get forwarded to. However, those mails have different senders, and one of them is important contact mail while the other is log mail. What I want to achieve is filter these messages and send them to two different domains.
In psuedo code:
if from == LOG_SENDER: forward_to("firstname.lastname@example.org") else: forward_to("email@example.com")
Note that the original mal comes from outside my configuration reach. My current solution is having manual filters in thunderbird that just drop the logs in a seperate folder. But I would like to have the filtering as early as possible.
Is this possible with postfix?
My current setup is Postfix & Dovecot with SASL auth.