Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

configuring mail to pass through a filtering server with exim

Posted on 2008-10-15
3
Medium Priority
?
240 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 180 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Check out the latest tech news, community articles, and expert highlights in August's newsletter.
To show how to create a transport rule 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 >> Rules tab.:  To cr…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Suggested Courses

885 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