You can do this with Postfix transports.
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:
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/main.cf and add the hostname of the old server to the mydestination line so that the new server accepts the forwarded mails.
Recent comments
11 hours 13 sec ago
20 hours 27 min ago
21 hours 17 min ago
1 day 50 min ago
1 day 5 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 13 min ago