Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    CTC
    CTC is offline
    Member
    Join Date
    Nov 2006
    Posts
    25

    Default Mail send locally

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2004
    Posts
    392

    Cool

    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.

    UK Managed Hosting
    UK Linux Support
    The information given above is intended to be advice only.

  3. #3
    CTC
    CTC is offline
    Member
    Join Date
    Nov 2006
    Posts
    25

    Smile 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. #4
    Member
    Join Date
    May 2003
    Posts
    120

    Default

    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
    Brian

Similar Threads & Tags
Similar threads

  1. Mail being delivered locally
    By 10101 in forum E-mail Discussions
    Replies: 2
    Last Post: 08-13-2010, 08:23 AM
  2. cant uncheck Always accept mail locally... box
    By hellashes in forum E-mail Discussions
    Replies: 0
    Last Post: 08-30-2008, 05:58 PM
  3. Using an offsite mail server (locally sent mail fails)
    By DanceInstructor in forum New User Questions
    Replies: 5
    Last Post: 11-30-2006, 07:46 AM
  4. Can't Send Mail Locally
    By celliott in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-21-2006, 03:33 PM
  5. E-mail delivery locally and not remotely
    By Jasonbd in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-19-2004, 11:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube