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 send locally

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

  1. CTC

    CTC Active Member

    Joined:
    Nov 29, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    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:
    16
    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.

    :)
     
  3. CTC

    CTC Active Member

    Joined:
    Nov 29, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    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:
    141
    Likes Received:
    0
    Trophy Points:
    16
    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
     
Loading...

Share This Page