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.

DNS Mail my server website someone else's server

Discussion in 'Bind / DNS / Nameserver Issues' started by ckh, Dec 2, 2005.

  1. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Got a rather unusual situation, at least for me, and I didn't see anything else posted here about it.

    Got a domain name pointing to my nameservers. Customer has had an account here for quite a while but wanted his dns changed so that his domain directs people to another server (including ftp) but he wanted to still use me for mail.

    Everything is working except for the mail. If sending to it, I get a relaying denied with his new website IP address. Any help would be appreciated.

    Chris

    Here's his DNS zone file:
    Code:
    
    hisDomainName.com.	14400	IN	NS	ns3.myNameServer.net.
    hisDomainName.com.	14400	IN	NS	ns4.myNameServer.net.
    
    hisDomainName.com.	14400	IN	A	1.2.3.4  <----IP of his website (not on my server) This is working
    
    localhost.hisDomainName.com.	14400	IN	A	127.0.0.1
    
    hisDomainName.com.	14400	IN	MX	0	hisDomainName.com.
    
    mail	14400	IN	CNAME	hisDomainName.com.  <----pings to 1.2.3.4  his website
    www	14400	IN	CNAME	hisDomainName.com.
    ftp	14400	IN	A	1.2.3.4      <----IP of his website (not on my server)  This is working
    
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator

    I have a customer that has basically done the same thing but no complaints yet. But after looking at the set up it would seem it would have no way to store the mail on your server based on the above setup because the mail comes to your server then redirects to 1.2.3.4 because the MX record says to send it to hisDomainName.com. I would think on:
    Code:
    hisDomainName.com.	14400	IN	MX	0	hisDomainName.com.
    the last part would be what needs to be changed to keep the mail on your server, but alas I cannot tell you waht to change it to.
     
  3. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    I tried changing that line replacing hisDomainName..com with the mailserver IP address separately for each instance and once it said hisDomainName.com not found and the other was from his new IP Address that said relaying denied.
     
  4. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Well I do not know that much about MX records, but expect I will encounter this problem as well when My customer tries to receive email so i am very much interested in what solution is suggested for the above.
     
  5. Zaf

    Zaf Well-Known Member

    Joined:
    Aug 22, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Change your MX and CNAME record to the following:
    Code:
    mail	14400	IN	A	11.22.33.44   <----- IP of your server
    hisDomainName.com.	14400	IN	MX	0	mail.hisDomainName.com.
    That should do the needful. Let me know if that does not work by any chance.
     
  6. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Dang, I was depending on getting replies to threads I posted in and didn't see it till now.

    Zaf,
    I made changes you suggested. Initially it didn't work but then I edited the localdomain file and added the domain name there and now it works fine!!

    Thanks so much for your input!!

    Chris
     
  7. Brian_Wilson

    Brian_Wilson Member

    Joined:
    Jul 28, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    I am working on the exact same setup at the moment.

    Exactly what domain did you add to the "localdomain" file to get it to work?
     
  8. snownet

    snownet Member

    Joined:
    Mar 20, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I had the same problem and did this with success...


    hisDomainName.com. 14400 IN NS ns3.myNameServer.net.
    hisDomainName.com. 14400 IN NS ns4.myNameServer.net.

    hisDomainName.com. 14400 IN A 123.123.123.123 Your webserver IP

    localhost.hisDomainName.com. 14400 IN A 127.0.0.1

    hisDomainName.com. 14400 IN MX 10 mail

    mail 14400 IN A 1.2.3.4 <-----Ip of external mail server

    www 14400 IN CNAME hisDomainName.com.

    ftp 14400 IN A 123.123.123.123
     
Loading...

Share This Page