editing MX dns records


There are three ip addresses on my server.  A spamfilter I have 'listens' on one of them.  I need to edit the dns configuration (on my hosting companies dns - which can be edited through the member area) so that mail from a domain on a different ip address goes through the ip with the spam filter.

Right now, the MX records look like:

mail.sampledomain.com.   (MX)  10 mail.theknotlongdistance.com.
sampledomain.com.          (MX)  10 mail.theknotlongdistance.com.

mail.sampledomain.com  (A)  with a numeric ip address

-------------------

I found that I could change that third one (enter the spamfilter's ip) and send mail to user@mail.sampledomain.com and it will go through the spamfilter just fine.

However, mail sent to user@sampledomain.com does not get routed through the spamfilter.

So...... can I simple change the MX records (10 mail.theknotlongdistance.com.) to the ip address I want mail routed through?

What does the '10' do, and should I include that?

Thanks,

Chris
ChrisAndrewsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tacobell777Commented:
The number is the order in which to use the mailserver, i.e. one preference over the other.
If 10 cannot be reached use 20 etc. etc.

Example

mail.sampledomain.com   MX  10 mail1.theknotlongdistance.com
mail.sampledomain.com          MX  20 mail2.theknotlongdistance.com
mail.sampledomain.com          MX  30 mail3.theknotlongdistance.com

Hope that helps.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ChrisAndrewsAuthor Commented:

That helps, I will give this a try, thanks :)

Chris
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.