Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-25-2004, 01:19 AM
|
#1
|
Member
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 518
Rep:
|
mail recovery question
I have recently had a system crash, power related, and I'm in the process of getting it back together, almost there, thanks to be having a good backup which included most of my configuration files.
Good news as I forgot how I managed to configure sendmail, apache etc etc.
Anyway, I have copies of /var/spool/mail and I wish to copy all of each users mail to the current /var/spool/mail folder.
How can this be done, or indeed can it be done?
Thanks in advance...
|
|
|
11-25-2004, 07:57 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
i don't follow... just copy the files surely... the data will still be valid.
|
|
|
11-25-2004, 11:34 AM
|
#3
|
Member
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 518
Original Poster
Rep:
|
I'm concerned as some users have since received new mail and not yet retrieved it, so if I copy then it will overwrite any mail currently there...
I suppose I'm looking for some form of merge or something...
|
|
|
11-27-2004, 01:11 PM
|
#4
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
You can merge standard mailbox files by using >>
This redirect appends the output to the target file, rather than overwriting the entire contents of the file.
e.g
cat /oldmail/bob >> /var/spool/mail/bob
You can use this in a script to do the whole set of current mailboxes.
If you are going to append stuff to a full set of live mailboxes it's a good idea to schedule downtime and stop the SMTP, POP and IMAP services first so that no mail goes in or out of the boxes whilst you are running the script.
Last edited by hob; 11-27-2004 at 01:14 PM.
|
|
|
11-07-2005, 08:12 AM
|
#5
|
Newbie
Registered: Apr 2005
Posts: 6
Rep:
|
re:
Users are sure to find in repair pst and email repair tool, simple yet versatile, to solve potential problems and stay in control of personal data.
|
|
|
All times are GMT -5. The time now is 06:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|