LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 03-02-2009, 11:18 AM   #1
retrovertigo
Member
 
Registered: Jul 2007
Distribution: Arch Linux
Posts: 36

Rep: Reputation: 15
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.
 
Old 03-02-2009, 11:44 AM   #2
carlmarshall
Member
 
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
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?

Carl.
 
Old 03-02-2009, 12:08 PM   #3
retrovertigo
Member
 
Registered: Jul 2007
Distribution: Arch Linux
Posts: 36

Original Poster
Rep: Reputation: 15
I had considered doing that, but stopped considering it for some reason. I honestly don't remember why. Now I feel a bit silly, haha.
 
Old 03-03-2009, 11:11 AM   #4
carlmarshall
Member
 
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
Don't worry, I've asked some real howlers on here myself. Perhaps you'll remember the reason when it all fails ;-)

Carl.
 
Old 03-03-2009, 11:52 AM   #5
rweaver
Senior Member
 
Registered: Dec 2008
Location: Independance, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 160Reputation: 160
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.)

Last edited by rweaver; 03-03-2009 at 11:55 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
delete all mail with exactly same subject from postfix queue badboynick21 Linux - Server 4 10-08-2008 05:12 AM
problem with postfix, inbound mail stuck in queue csteel Linux - Newbie 1 07-03-2008 01:24 PM
mail postfix queue file size limit exceeded gabsik Linux - Networking 4 03-07-2008 03:25 AM
Postfix Mail queue high inaki Linux - Software 3 02-13-2008 03:23 AM
Postfix mail queue problem csdhiman Linux - Server 1 08-07-2007 07:32 AM


All times are GMT -5. The time now is 06:19 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration