Solved

configuring mail to pass through a filtering server with exim

Posted on 2008-10-15
3
231 Views
Last Modified: 2013-12-18
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 123.45.67.89 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.

Thanks!
0
Comment
Question by:pdanese
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
jar3817 earned 45 total points
ID: 22730851
Those steps will work fine. Keep in mind that the "highest priority" is the lowest number when dealing with MX records.

I have no idea how to do #4 with exim, but it's cake with sendmail: just add the domain and the destination server to the /etc/mail/mailertable file. If you're not married to exim that might be easier.
0
 

Author Closing Comment

by:pdanese
ID: 31506326
thank you!
0
 
LVL 26

Expert Comment

by:jar3817
ID: 22731141
addition thoughts, do your self a favor and change the time to live (TTL) on the dns records you're going to change to a very low number (300 or something like that) a day or so before you actually make the record changes so it only takes 5 minutes or so for the changes to propagate. That way if you make a mistake you can fix it and not have to wait a day while your email bounces. A day or so after you're sure it's all working, move the TTLs back up.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Easy CSR creation in Exchange 2007,2010 and 2013
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now