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.

MX records changed - mail still going to default mailbox

Discussion in 'E-mail Discussions' started by EMS, Aug 26, 2005.

  1. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    I changed a zone file as follows...

    mail 7200 IN CNAME mydomain.com.
    www 7200 IN CNAME mydomain.com.
    ftp 7200 IN A ip.ip.ip.ip

    mydomain.com. 7200 IN MX 10 another.host.theirdomain.com
    mydomain.com. 7200 IN MX 20 another2.host.theirdomain.com
    mydomain.com. 7200 IN MX 30 mail


    But all email is still going into the default mailbox for this account .

    If I remove the domain name from etc/localdomains I get an error when sending to the domain - that I am not allowed to relay thru the server.

    What did I do wrong ?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    What are you trying to achieve? From the information you've given you seem to have 3 MX records and the last one is still pointing back to your server. If the email is meant to be going elsewhere, then you should not have any MX records pointing to A records that resolve to your server. You then have to remove the domain from /etc/localdomains and put it in /etc/remotedomains and then depending on your DNS setup, will have to wait for DNS propagation to take place (usually 24 hours).
     
  3. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    So its not possible to use the default mailbox as a backup by setting mx to a larger number ?

    Ok, thanks for your help.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, that's not how backup MX works. Potentially, email can be sent to any of the MX records regardless of their score and since you've told your server that it doesn't relay email for the domain it's confused as to why there's an MX record pointing to it.
     
  5. EMS

    EMS BANNED

    Joined:
    May 10, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    0
    Ive done as you suggest but I'm now geting an unrouteable mail domain. It seems to think that the mx record I've put in place is a subdomain of the main domain.

    When I do an mx lookup I get server.other.domain.com.mydomain.com. instead of simply server.other.domain.com.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That usually happens if you've got a missing dot after an A record in the zone file for the domain.
     
Loading...

Share This Page