Solved

configuring mail to pass through a filtering server with exim

Posted on 2008-10-15
3
232 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Resolve DNS query failed errors for Exchange
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

776 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