Email from remote cPanel to local office Exchange server

thedae

Registered
Dec 15, 2005
4
0
151
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?
 

thedae

Registered
Dec 15, 2005
4
0
151
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...?
 

designeru

Well-Known Member
Nov 2, 2005
83
0
156
step by step...

nickp666 said:
remove the domain from /etc/localdomains and add it to /etc/remotedomains
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.
 

rik4207

Registered
Apr 16, 2004
1
0
151
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
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
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
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.
 

CTC

Active Member
Nov 29, 2006
25
0
151
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:
 

CTC

Active Member
Nov 29, 2006
25
0
151
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.