Redirect mail sent to local address to a different smtp server

Discussion in 'Installation/Configuration' started by danypd69, Dec 3, 2013.

  1. danypd69

    danypd69 New Member

    Hello,
    I have a request from a client but I can't find a way to do it.

    I have a server with centos 6 + ISPConfig 3.0.5.3 (postfix/dovecot) that handles an email domain, let's call it maildom.com

    The mail for this domain is sent to my server from another smtp server, (mailserver.com) that forward email only for some addresses.

    Example:

    user1@maildom.com is forwarded to ispconfig
    user2@maildom.com is handled by mailserver.com

    Receiving email works ok (user1 gets email from ispconfig and user2 gets email from mailserver.com)

    What I need to do is that when user1@maildom.com sends an email to user2@maildom.com using ispconfig the message is sent to mailserver.com

    With the standard config if I create the user2@maildom.com on the ispconfig server the email is delivered locally and never goes to mailserver.com and if I don't create the user the email is not delivered because maildom.com is a local domain and the user does not exists.

    Is there a way to do this configuration ?

    Thanks
    Daniele
     
  2. pititis

    pititis Member

    use email routing.

    First, add user2@maildom.com to email->relay recipient

    Second, configure the route:

    email->email routing

    domain: user2@maildom.com
    type: smtp
    No mx lookup: unselected
    Destination: mailserver.com

    Cheers
     
  3. danypd69

    danypd69 New Member

    Works perfect.
    Thanks a lot
    Daniele
     

Share This Page