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.

How to forward emails to external ip

Discussion in 'E-mail Discussions' started by dyacubo, Sep 17, 2008.

  1. dyacubo

    dyacubo Registered

    Joined:
    Sep 16, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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. davidg@127.0.0.1)? 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?
     
  3. dyacubo

    dyacubo Registered

    Joined:
    Sep 16, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  4. dyacubo

    dyacubo Registered

    Joined:
    Sep 16, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  5. opt2bout

    opt2bout Well-Known Member

    Joined:
    Nov 10, 2006
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    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!
     
Loading...

Share This Page