I need help setting up my freebsd postfix as a secondary email server while another postfix is already a primary MX email server. I have done all the configuration I believe should be done on the primary server. This is what I have done and what I am experiencing:
On the primary server, I setup a relay host to my secondary server smtp:my.account.com:25. The name of my primary sever is this.my.account.com. All mails coming from the cloud (internet) goes through my primary server first before being forwarded to my secondary server.
I am currently migrating users to my primary server from my secondary server one at a time. When the mails get to my primary server and looks for the account and couldn't find it, it sends it directly to the secondary server.
The issue now is, when accounts on the secondary server send mails to account that are now active on the primary server, it does not come through. Instead it stays on the local machine of the secondary server.
I want postfix to know that all emails being sent from the secondary server should look for the primary server first before looping back to itself.
Someone suggested looking at postfix transport (5). But frankly enough, I am not sure how it works even though I have read it couple of times.
Note* I will still want users that are still in the secondary (old email) server still receives email from outside while they are still able to send emails to account that now resides on the primary (new email) server.
I want the secondary to act as a backup should incase something goes wrong with the primary.
Thanks
On the primary server, I setup a relay host to my secondary server smtp:my.account.com:25. The name of my primary sever is this.my.account.com. All mails coming from the cloud (internet) goes through my primary server first before being forwarded to my secondary server.
I am currently migrating users to my primary server from my secondary server one at a time. When the mails get to my primary server and looks for the account and couldn't find it, it sends it directly to the secondary server.
The issue now is, when accounts on the secondary server send mails to account that are now active on the primary server, it does not come through. Instead it stays on the local machine of the secondary server.
I want postfix to know that all emails being sent from the secondary server should look for the primary server first before looping back to itself.
Someone suggested looking at postfix transport (5). But frankly enough, I am not sure how it works even though I have read it couple of times.
Note* I will still want users that are still in the secondary (old email) server still receives email from outside while they are still able to send emails to account that now resides on the primary (new email) server.
I want the secondary to act as a backup should incase something goes wrong with the primary.
Thanks