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.

Email from remote cPanel to local office Exchange server

Discussion in 'E-mail Discussions' started by thedae, Oct 4, 2006.

  1. thedae

    thedae Registered

    Joined:
    Dec 15, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I was wondering if anyone has any input on how to configure cPanel to allow email from a shopping cart script (X-Cart) to be allowed to route through the webserver to my local exchange server.

    I have changed all my mail. and MX records to point to the IP of my internal exchange server. But I cannot get emails to leave the remote cPanel web email and deliver to the exchange server.

    I am running a dedicated Linux server running WHM and cPanel10.8.1-RELEASE 113

    Any ideas?
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    remove the domain from /etc/localdomains and add it to /etc/remotedomains
     
  3. thedae

    thedae Registered

    Joined:
    Dec 15, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I actually found that last night after I posted...sorry...but I dont know how to do that. I am assuming that is a SSH command line...?
     
  4. designeru

    designeru Well-Known Member

    Joined:
    Nov 2, 2005
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    step by step...

    Login to your server as root (ssh console).
    Type this:
    # vi /etc/localdomains
    * that file will open, type: /<your domain> (without <>)
    * it will point your cursor on your domain
    * press dd (twice d) - this will delete that line
    * press :wq - this will save your file and close the editor
    # vi /etc/remotedomains
    * press i (small i)
    * insert the domain there
    * press Ctrl+C
    * press :wq (to save and exit)

    I guess you should restart exim after this.
     
  5. rik4207

    rik4207 Registered

    Joined:
    Apr 16, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    why would you have them use VI?

    use nano if you are a beginner, this guy just wants to make it look harder than it is
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Please don't be rude to others trying to help out on the forums. If you want to make a contribution, feel free but there's no need to denigrate others.
     
  7. CTC

    CTC Active Member

    Joined:
    Nov 29, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Help i think i have messed up the file

    E325: ATTENTION
    Found a swap file by the name "/etc/.localdomains.swp"
    owned by: root dated: Thu Jan 18 22:32:22 2007
    file name: /etc/localdomains
    modified: YES
    user name: root host name: mydomain.com
    process ID: 5052
    While opening file "/etc/localdomains"
    dated: Thu Jan 18 22:41:53 2007
    NEWER than swap file!

    (1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

    (2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/localdomains"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.localdomains.swp"
    to avoid this message.
    "/etc/localdomains" 27L, 605C

    I was basically editing the local and remote as i have a customer who has their own exchange server and the local PHP send was leaving messages in the main account.

    how do i delete the file or recover the one i started working on :(

    Waiting in anticipation.:confused:
     
  8. CTC

    CTC Active Member

    Joined:
    Nov 29, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Fixed it

    i basicall typed at the root

    rm .{your file name}.swp then y then enter

    this deleted the swap file.

    Make sure you have a backup though.
     
Loading...

Share This Page