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.

mail Server on a Def Server

Discussion in 'E-mail Discussions' started by kalinga, Mar 9, 2005.

  1. kalinga

    kalinga Member

    Joined:
    Mar 9, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi :)

    i have a qustion, now i have my domain hosted on a server that has Cpanel, with my domain (abc.com)

    but i have my email server running at my end not on the same server as my web site. i point my server with the DNS editor on the cpanel and point the MX to my server. now all works fine untill some one on the hosting server send me a email, it stays on my hosting server it dont use the dns infomation.

    what can i do on the cpanel server to not to look for local domain just to use mx to send mail ?

    thanks
    kalinga
     
  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
    It's been covered many times before (search) but one more time ;) :

    1. Remove the domain from /etc/localdomains
    2. Add the domain to /etc/remotedomains (create the file if you need to)
     
  3. kalinga

    kalinga Member

    Joined:
    Mar 9, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Thanks !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    sorry !!!! :confused: i try to search but didnt find what i was looking for, maybe im dumb !!!!

    thanks a milion for the reply !!!!!!!!!!!!!!!!!!!! :)
     
  4. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    ...and to check the routing of mail once completing the change on your server,

    # exim -bt user@remotedomain.com

    Should route 'remote smtp' from your box, if the change is good :)
     
  5. kalinga

    kalinga Member

    Joined:
    Mar 9, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    this may sound dum, but what if i want to keep a subdomain me@sub.mydomain.com on the capnel server and send all other email me@mydomain.com to a nother server ?

    *******************
    /etc/localdomains

    sub.mydomain.com

    *******************
    /etc/remotedomains

    mydomain.com

    DNS
    *******************
    mydomain.com mx 0 host.myothermailserver.com
    sub.mydomain.com mx 0 host.mycpanelserver.com


    am i correct ? :rolleyes:
     
  6. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    If you want mail for a subdomain, just create a new account in your whm, sub.domain.com

    This is then just a normal account, with local configured mail. It has its own dns zone as a result too.
     
  7. kalinga

    kalinga Member

    Joined:
    Mar 9, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    thanks alot guys !!!!!!!! :) :D
     
Loading...

Share This Page