Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    4

    Default mail server at a different location and can't send to it HELP PLEASE

    I have a website hosted in a hosting center running WHM and cpanel. There is an A record for www.mydomain.com that points to it.

    My mail server is at a different location. (mail.mydomain.com) It also has an A record and an MX record that point to the correct location.

    When my WWW server tries to send an email to user@mydomain.com it is getting confused. It fails and never sends it off the server to my mail server that is at the other location. It appears that it thinks it is mydomain.com. I have changed the mx record in cpanel to say mail.mydomain.com. It still keeps failing. It will send mail everywhere else fine.

    If anyone can help me get this fixed it would be great.

  2. #2
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    On the server where your www is, you need to remove your domain from /etc/localdomains and add it to /etc/remotedomains

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

    Default same issue

    Can u post a dummy guide for root access commands to perform this task.
    Typing pico remotedomains brings up a blank page.

    I have the same problem.

  4. #4
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Sorry, I'm not the best to answer this. I don't use cl editors very much* That said, pico and vi have pretty good man pages.

    One thing, if your current working directory is not /etc then you would need to...
    pico /etc/remotedomains

    If the file /etc/remotedomains doesn't exist, then I guess you would need to...
    touch /etc/remotedomains
    ... first, then ...
    pico /etc/remotedomains

    To be honest, I don't remember if I had to create /etc/remotedomains the first time or if it was already there by default.

    rgds,


    * I normally use an ssh client that allows me to open files in my local editor (BBEdit) where I am much more comfortable working.

  5. #5
    Member dafut's Avatar
    Join Date
    Dec 2005
    Posts
    75

    Default

    I believe the remotedomains file has to be created the first time it's needed. At least on my VPS that was the case.

    If it's the first time, you can use this command to create the file:

    # echo domain.tld > /etc/remotedomains

    If you're adding to an existing remotedomains file, use the append ( >> )command:

    # echo domain.tld >> /etc/remotedomains

    You'll still need to manually edit the localdomains file...

Similar Threads & Tags
Similar threads

  1. can no longer send mail from one server to the other
    By audrey in forum E-mail Discussions
    Replies: 11
    Last Post: 03-10-2011, 04:50 PM
  2. Can't Send Mail from server
    By topgunmike in forum E-mail Discussions
    Replies: 14
    Last Post: 12-30-2008, 02:16 AM
  3. Send mail and mail server is not wroking psl help
    By shann in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-24-2004, 10:30 AM
  4. Replies: 3
    Last Post: 10-07-2003, 07:02 AM
  5. mail server can't send out email
    By promak in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-01-2003, 08:25 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube