configuring mail to pass through a filtering server with exim
Posted on 2008-10-15
Hi, I'm having a email server issue
what I'd like to do:
my company's domain is xyz.com
we have a mail server (Exchange 2003) whose address is mail.xyz.com
we also have an external server running redhat and exim (it has a static ip address of 18.104.22.168 and a nameserver of ns1.xyz.com)
I'd like to have all email from external domains to first pass through the exim server and then be forwarded on to mail.xyz.com
my understanding is that I should do the following but I'd like some type of verification before I go messing with the system:
1. change mx records so that the highest priority name-server is ns1.xyz.com
2. change the mx records so that mail.xyz.com is the second highest priority
3. modify exim to accept emails that are addressed to *@xyz.com (this presumably is done by modifying the exim.conf file to have relay_hosts accept mail addressed to *@xyz.com)
4. have exim forward those mails to mail.xyz.com
My questions are
1. are these steps accurate? or is there another/simpler/more correct way?
2. how is step 4 accomplished? i.e. how do I get exim to funnel emails to our main mail server after it receives them?
3. again, there might be a better way...I *think* steps 1-3 are correct (from reading exim docs), but I'm not sure how 4 is accomplished.