The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

adding second MX record screw up

Discussion in 'General Discussion' started by jeroman8, Aug 6, 2004.

  1. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I need to add another mx record for a domain.

    The regular mx record: "domain.com MX 0 domain.com"
    and another one going to a remote mailserver so it would be called: sec.domain.com

    I add it like this:

    "sec MX 0 remote.mailserver.com"

    BUT when I check it (dnsstuff.com) it turns out like this: remote.mailserver.com.domain.com

    ?? - so it add the remote mailserver but then on top of it it adds my domain also ??

    ANY help appreciated please
     
  2. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    Looks like your missing your "." at the end of your mx record. Should be

    domain.com MX 0 domain.com.

    sec.domain.com MX 0 sec.domain.com.

    Thanks
    -Seth
     
  3. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    I Love You :)
     
  4. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    I feel loved :)

    Thanks
    -Seth
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You really ought to have different values for your MX records. The primary (where the mail ends up) should be lower than the secondary.
     
  6. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    yep, bad example on my part! you will want to incres your weight by at least one, or you can play with some nutty round-robin mail-servers.

    Thanks
    -Seth
     
  7. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Yes, I added 0 for the main and then 10 for the other one.

    But what is these numbers anyway ??
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    They're essential for routing the mail correctly ;)

    The lower numbered MX record is the ultimate destination for email delivery. The higher numbered MX record will queue any email sent to it until the lower numbered MX record is available and then deliver the queued email to that IP address.
     
  9. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    It is the "preference value". MTAs will initially attempt to send mail via the host with the lowest preference value.

    Mail routing is described in IETF RFC 974
     
    #9 SarcNBit, Aug 9, 2004
    Last edited: Aug 9, 2004
  10. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    Help

    I have setup 2 MX records as above.

    sub.domain.com MX 10 mailserver
    domain.com MX 0 localmailserver

    Now when sending mail with reply address as "sub.domain.com" you can't
    send to the local "domain.com" adress.

    Sender Verify Fail error

    The sub.domain.com's adresses is offcourse setup on another mailserver
    but it looks like exim is checking to verify the adress locally.

    Can this be because there's an A record for the sub.domain.com as well as MX record.
    Should I remove the Sub domain (A record) ??

    Or can I setup something in exim, relay stuff....??
     
  11. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    16
    I removed the subdomin in localdomains - it's ok now
     
Loading...

Share This Page