Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-2010, 07:13 AM
Intermediate Member
 
Posts: 17
Default Help me understand MX records

I have a working zimbra install on centos 5 64 bit. I just got done with it yesterday after getting local BIND to work on it for DNS resolution to the local ip.

Mail routing is working in and out just fine.

What I'm having a difficult time grasping is why I can send to my mail domain from the outside world and it works when the MX record for my mail domain is local? How does Gmail know that my mail domain exists when it can't query the mx record?

I'm not saying anything is broken, this is the way I want my install to work, but I want to understand why something works the way it does...
Reply With Quote
  #2 (permalink)  
Old 08-03-2010, 08:02 AM
Advanced Member
 
Posts: 178
Default

If your domain has no MX record, but does have an A record, then Gmail or any other site will try to send mail to the server pointed to by the A record.

We might be able to tell more if you provide your mail server name and look at the dns records directly.
__________________
---
Paul Chauvet
State University of New York at New Paltz
Reply With Quote
  #3 (permalink)  
Old 08-03-2010, 08:21 AM
Moderator
 
Posts: 1,432
Default

Agreed with above. But note that if a public mx record exists, mail must not be delivered to the A record, even if all the mx's are unavailable. Some broken mta's will do this, though.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #4 (permalink)  
Old 08-03-2010, 08:32 AM
Intermediate Member
 
Posts: 17
Default

vcentra.rings-things.com
Reply With Quote
  #5 (permalink)  
Old 08-03-2010, 08:44 AM
Intermediate Member
 
Posts: 17
Default

Ok I think I understand now. It is just defaulting to the A record like you mentioned.

So I need another MX record pointing to my external interface?
Reply With Quote
  #6 (permalink)  
Old 08-03-2010, 08:52 AM
Advanced Member
 
Posts: 178
Default

If you have an MX record pointint to your external interface, then (after a period of time for dns caching to expire externally) no legitimate mail should come from the outside to your Zimbra server.

You might want to, as many do, close off point 25 from all except your internal servers and require your users to connect via 465/ssl for SMTP.
__________________
---
Paul Chauvet
State University of New York at New Paltz
Reply With Quote
  #7 (permalink)  
Old 08-03-2010, 09:13 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by chauvetp View Post
If you have an MX record pointint to your external interface, then (after a period of time for dns caching to expire externally) no legitimate mail should come from the outside to your Zimbra server.
That sounds rather confusing (at least to me), mail is delivered via an MX record so why wouldn't mail get to his server if he has an external MX records pointing at his public IP?

Quote:
Originally Posted by chauvetp View Post
You might want to, as many do, close off point 25 from all except your internal servers and require your users to connect via 465/ssl for SMTP.
That should be Port 587 and Authenticate agains the Zimbra server but has he mentioned not wanting mail from outside or have I missed something simple here?
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 08-03-2010, 09:42 AM
Intermediate Member
 
Posts: 17
Default

No i want mail from outside.

I setup internal DNS so if the net goes down, internal mail will still route.

i was curious as to why since my MX record was internal only that I was still able to recieve mail from the outside, thats all.

I think I just need another MX record that points to my external ip now, so that outside mail servers can use it instead of the A record.
Reply With Quote
  #9 (permalink)  
Old 08-03-2010, 10:09 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by ricardoc View Post
No i want mail from outside.

I setup internal DNS so if the net goes down, internal mail will still route.
No, that's if you're behind a NAT router or firewall so you'll get mail delivered - Postfix requires it.

Quote:
Originally Posted by ricardoc View Post
I think I just need another MX record that points to my external ip now, so that outside mail servers can use it instead of the A record.
Yes, that would be correct.
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.