CTC

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

forlinuxsupport

Well-Known Member
PartnerNOC
Dec 22, 2004
386
0
166
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.

:)
 

CTC

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

brianc

Well-Known Member
May 16, 2003
191
7
168
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