Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mail send locally

Discussion in 'E-mail Discussion' started by CTC, Dec 1, 2006.

  1. CTC

    CTC Active Member

    Joined:
    Nov 29, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    Hi members,

    I have an issue where i have a site is hosting its mail on an exchange server so the DNS record which has a record pointing to their box. Which works fine.

    However the website is done on my box and they use a php mail send function which is sending mail to the main mail account on my box.

    How can i overcome this problem?

    many thanks in advance
     
  2. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    move domain from file /etc/localdomains and put it in
    /etc/remotedomains

    just create it if it doesnt exist

    give it same permissions as /etc/localdomains

    Then cpanel knows to do an MX lookup for it and send it there.

    :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. CTC

    CTC Active Member

    Joined:
    Nov 29, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    move

    can that be done via WHM or does it have to be root

    can i have some direction or examples for data entry via console.

    possibly an example.

    Thanks for the help.
     
  4. brianc

    brianc Well-Known Member

    Joined:
    May 16, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    168
    You can create the remotedomains file via logging in as root via ssh. Just type:

    pico remotedomains

    All you need to do is add the needed domain name. Its one domain name per line:

    domain1.com
    domain2.com

    Hope that helps.

    Brian
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice