Hello Everybody, I need to migrate my old postfix server to a new machine. Domain will be the same. I would like to make this migration seamless for the end users and give them 1-2 months for migration (both servers should work at that time correctly).
My current deployment is the following: - my domain: department.company.com - all emails for *company.com goes to main SMTP server (i am not admin of that server) - on main SMTP server i have aliases like this: all emails to department.company.com goes to my SMTP server (department.company.com) I have configured new server: new-department.company.com and created aliases on main SMTP server: all emails to new-department.company.com goes to my new SMTP server (new-department.company.com). Both servers (new and old) are configured for domain: department.company.com ($mydomain). All users have imap/smtp configured for domain:department.company.com (users before migration and users which already migrated - the migrated users just configured new Account pointing to a different IP server - the rest of the setting are the same). On the old server i have created aliases: u...@department.company.com -> u...@new-department.company.com Right now all emails received by old server are also forwarded to a new server. I would like to make the same forward from the new server to the old server (so the emails from new server are also replicated to the old server). But of course that could create a loop. Email to u...@department.company.com would go like this: a) internet -> main_server -> old_server (forward) -> main_server -> new_server (forward) -> main_server -> old_server (forward)....... Of course after 1 months i will just fix aliases on main SMTP server pointing to a new-department.company.com server for domain: department.company.com and disable forwarding aliases on both (old, new) server. How can i make it working without forwarding loop. Is there any "if" in postfix that could check "Received" header and if already received by this server in the past silently drop this message ? Best Regards, Michal Garcarz