Redirecting email to another server

Discussion in 'Installation/Configuration' started by peterj, Aug 14, 2010.

  1. peterj

    peterj New Member

    Is it possible to setup a redirect on one Ispconfig machine to divert all incoming email to another server? I am migrating multiple domains, one by one, from one Ispconfig server to another one and want to setup identical accounts on the backup machine.

    Once I have all setup and working, then I would make all the DNS changes and retire the old computer.
     
    Last edited: Aug 14, 2010
  2. falko

    falko Super Moderator Howtoforge Staff

    On the old server, create a Postfix transport now so that all emails are forwarded to the new server (for the time until the MX records of your domains have switched to the new server):
    Code:

    Code:
    echo "*  smtp:[<IP address of new server>]" >> /etc/postfix/transport
    postmap /etc/postfix/transport
    /etc/init.d/postfix restart
    On the new server, open /etc/postfix/local-host-names and add the hostname of the old server at the bottom so that the new server accepts the forwarded mails.
     
  3. peterj

    peterj New Member

    Thanks for the reply.
    Is there a way to do this per domain basis?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Yes - take a look at
    Code:
    man 5 transport
     

Share This Page