How to forward emails to external ip

dyacubo

Registered
Sep 16, 2008
4
0
51
Hi All,
I would like to set up forwarding of all emails to domain test.com to external IP address (not to different domain name) which is a different mail server. How can i do this? Can i do this?

10x alot
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hi All,
I would like to set up forwarding of all emails to domain test.com to external IP address (not to different domain name) which is a different mail server. How can i do this? Can i do this?

10x alot
This seems a bit abnormal - are you trying to forward emails from test.com to some email that resides on an IP address (e.g. [email protected])? Or are you just trying to have a remote mail server handle all your mail for that domain? If it is the latter, have you considered having a MX record that points to that server and configuring that server to accept mail for your domain?
 

dyacubo

Registered
Sep 16, 2008
4
0
51
I am sorry for unclear explanation. What i am try to do is as following:
We have a client which has it's own Exchange server, so he want us to work as a spam filter, meaning MX record going to point to our server and our server should perform spam check and send emails to clients Exchange.
Hope this time it's more clear.
10x
 

dyacubo

Registered
Sep 16, 2008
4
0
51
I found it.
All i need to do it to place following lines in ROUTERS CONFIGURATION section:
smart_host_your_client:
driver = manualroute
route_list = client's_domain.com 123.123.123.123
transport = remote_smtp
Where client's_domain.com = client domain and 123.123.123.123 = client MTA IP

10x to all
 

opt2bout

Well-Known Member
Nov 10, 2006
69
1
158
Which router block did you put this? I'm trying to do something similar, only using a file to input the domains to forward, but I can't get the SPAM and ClamAV process to run on the incoming messages before they are passed onto the remote Exchange server.

Thanks for any help!