View Single Post
  #186  
Old 13th October 2010, 10:30
TomC TomC is offline
Member
 
Join Date: Mar 2008
Posts: 37
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi Falko,

a huge thank you for this fantastice howto that helped me loads.

Quote:
Originally Posted by falko View Post
On the old server, create a Postfix transport now so that all emails are forwarded to the ne 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/local-host-names and add the hostname of the old server at the bottom so that the new server accepts the forwarded mails.
Being in the process of moving my ISPConfig 2 installation to another server (which is going to have the same hostname.domainname, just another IP address), I was wondering if there is a way to create a transport that

...sends every mail to the IP address of the new server (as described)
...plus delivers the mail locally, as Postfix always used to.

By this means it wouldn't be an issue how long the DNS transition of the domainnames would take. Mail-wise, the two machines would always be in sync.

Could you give me a pointer on how to confure a postfix transport that would do exactly this?!

Thanks and regards,
Tom
Reply With Quote