Postfix - queue up messages while rolling out new mail server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Postfix - queue up messages while rolling out new mail server
When I took my current job, I inherited administration of a postfix-based mail server running debian etch. We're running nightly backups, but the server is on old hardware and a single hard drive, so no redundancy there. I'm getting ready to repurpose a beefier server with RAID 5, and plan to match the current software setup (Postfix, Dovecot, with MySQL for the user database). However, with close to 50 GB of mail already on the server, it's going to take a minute or ten to copy it over the network. Even with doing the maintenance at night, management wants minimal loss of messages. I'm anticipating it taking more than just a minute or two to get everything working on the new server, so what I would like to do is let Postfix queue up messages while the migration is in progress, then have them delivered to the new server once it is active.
I've done some googling, but haven't found anything useful. I'm going to continue looking, but I was wondering if anyone knew of a good resource of information on performing this kind of migration.
Last edited by retrovertigo; 03-02-2009 at 11:29 AM.
Perhaps I'm missing the point, but why not set up the new server ready & waiting then change the MX record to point to the new server. Then when all mail is hitting the new one, move the data from the old server to the new one?
Above and beyond that, you don't lose mail if your server isn't available at time of delivery. It should queue it up on the originating server for several hours at least before giving up on delivery. Biggest thing to watch is the ttl on your dns records... it's bad if transition takes 3 days because that's the absurd value someone gave it.
Shutdown mail on both servers, change mx record, copy messages, bring up mail on new server (preferably accepting mail at both the original and new ip.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.