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
19 hours 44 min ago
19 hours 50 min ago
1 day 48 min ago
1 day 7 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 20 hours ago
2 days 21 min ago
2 days 2 hours ago