Results 1 to 9 of 9

Thread: Help me understand MX records

  1. #1
    ricardoc is offline Intermediate Member
    Join Date
    Aug 2010
    Posts
    18
    Rep Power
    4

    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...

  2. #2
    chauvetp is offline Elite Member
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    284
    Rep Power
    7

    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

  3. #3
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    8

    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.

  4. #4
    ricardoc is offline Intermediate Member
    Join Date
    Aug 2010
    Posts
    18
    Rep Power
    4

    Default

    vcentra.rings-things.com

  5. #5
    ricardoc is offline Intermediate Member
    Join Date
    Aug 2010
    Posts
    18
    Rep Power
    4

    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?

  6. #6
    chauvetp is offline Elite Member
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    284
    Rep Power
    7

    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

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    ricardoc is offline Intermediate Member
    Join Date
    Aug 2010
    Posts
    18
    Rep Power
    4

    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.

  9. #9
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MX records and A records issues
    By Max Ma in forum Administrators
    Replies: 3
    Last Post: 04-26-2010, 10:01 PM
  2. Multiple Records in Shared Contacts
    By folioguru in forum Administrators
    Replies: 1
    Last Post: 10-28-2009, 12:17 PM
  3. Replies: 3
    Last Post: 05-21-2009, 10:12 PM
  4. DNS help - where to create "A" and "MX" records
    By Sami in forum Installation
    Replies: 4
    Last Post: 12-30-2008, 09:26 AM
  5. MX Records
    By DanJar in forum Installation
    Replies: 4
    Last Post: 03-03-2008, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •