LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 04-25-2010, 10:32 AM   #1
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
backup mail queue


can i just copy/backup postfix mail queues in /var/spool/postfix and paste that folder back in after i done migrating all users and mails to a new mailserver?
 
Old 04-25-2010, 12:28 PM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
paste? Odd language. I presume you mean something like tar it up and then untar it on the new server.

As long as you shutdown postfix, back it up, then recover it to the new system, and then start up the new postfix, you should be alright. If you have an active mail server, backups can be a pain, because you typically don't want to shut down the mail server, and the mail files are constantly being updated. I'm presuming if you are running a postfix server you know what else you need in the way of configuration files, etc.
 
Old 04-25-2010, 07:53 PM   #3
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
since the configurations from old server are also migrated, i think it would be okay, plus i already backup up (and tested the backup).
 
Old 04-25-2010, 09:00 PM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Sounds like you should be alright then. Although you have to look out for all the little details in this kind of server migration.

For the final step, be sure to shut down Postfix, transfer the mail spool files to the new server, and then start up Postfix on the new server. If you try to do that transfer without shutting down Postfix, the files will be changing while you are trying to transfer.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to untar my tarred mail queue folder back to the sendmail queue directory again? Md.Abul Quashem Linux - Server 6 02-16-2010 08:32 AM
Mail Queue script Cybrosis Programming 1 11-02-2009 07:18 AM
could not find the mail in mail queue surya_prakash Linux - Newbie 2 03-26-2009 07:34 AM
queue mail Gran_Maestre Linux - Server 4 09-30-2008 03:14 PM
Mail Queue... shibata Linux - Networking 1 11-24-2001 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration