Solved

configuring mail to pass through a filtering server with exim

Posted on 2008-10-15
3
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

617 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