I have a local Exchange Server which has a dynamic internet ip. So I have setup a dynamicdns server for this server. The server is my main mail server.
Now I have a public domain and a postfix server as email server for this pubic domain. I dont want to change the MX Records because the Exchange server has a dynamic IP. So I want to have the postfix server as a relay server.
For outgoing emails on the exchange server I have setup a connector to sending it to the postfix server which is working fine. For incoming emails I have setup a external tool to fetch the emails with POP3 from the postfix server and forward it to the exchange server.
Is it possible to avoid the pop3 collector and send incoming email directly from the postfix to the exchange server? I know that I can do that with transport maps in postfix but my problem is that the exchange server has a dynmaic ip. So if the server isnt available I want to have the emails on the postifx server so that it is possible to read the mails on the postfix server if they wasnt relayed to the exchange server. And when the exchange is back online I want that the mails are relayed again.
For example keep the mails in the users mailbox on postfix until postfix can connect to the exchange server and relay the mails.