Postfix - filtering internal email
I have a postfix configuration issue, I'm wondering if anybody has any experience with this kind of situation.
I have an openXchange groupware box running a version of Postfix. We recently acquired an external email spam/virus/content filtering box that sits between the mail server and the internet. I've configured relaying and DNS properly so all incoming and outgoing mail goes through the filter box. That's all good.
What I need to do now is run all internal email through the filter box. What I need is for all mail from appliance.dom.org to be delivered locally on the mail server, while all mail from anything-else.dom.org gets relayed to the appliance. Obviously, just relaying mail from the domain gets into a mail loop.
I'm not a postfix expert, by any means, so this is giving me a headache.
The closest solution I can see is to split the postfix into incoming and outgoing servers and have the outgoing instance deliver all mail to the appliance while the incoming server handles delivery to the mailboxes. That way, all mail would go through the appliance.
Is this the way to do it, or is there another solution? If possible, I'd like to avoid having to split the instance since that means I would have to reconfigure the appliance and I do not have admin access on that.
|