I am having trouble with this scenario and I know I m not doing it correctly.
I want to have mail come into a mail server(s) that will process spamassassin and (hopefully clamav) and the forward on the mail to another server(s) which will do some custom things with it. I am not so concerned as the spamassassin part of it since it works properly. The biggest question I had was how to relay/forward the mail onto the secondary set of servers.
The path looks like this
Email ----> [first set of servers (spam)] ----> [relayed to this set of servers]
So this is sort of a two part question.
How do you forward/relay ALL mail, after processing on the first set of servers onto the second set. And is there a way to put multiple server ip's in (hopefully not using DNS as a round robin tool).
Some more knowledge, the first set of servers accepts mail from multiple domains. The first set is accepting mail through a load balancer, so I'm not needing any ideas accepting mail on the first set, just the forwarding/relaying onto the next set.
You may be asking why not do this all on one server. I am isolating the two as a buffer, and to break down the processing. The second server has some custom software that takes a little bit more time to process.
Thanks in advance. If more information is needed, I can give it.