View previous topic :: View next topic |
Author |
Message |
mr-simon Guru
Joined: 22 Nov 2002 Posts: 367 Location: Leamington Spa, Warks, UK
|
Posted: Thu Jan 09, 2003 10:18 pm Post subject: Parse/send entire mbox |
|
|
I've almost finished migrating my old redhat box to gentoo. Yay!
One thing that happened during the move is that as the MX records for the domain hosted on the box updated, some mail ended up going to the old sendmail-powered box, and the rest to the new qmail-powered gentoo box.
Is there a cunning way I can throw the files in my old /var/spool/mail directory back at sendmail so that it tries to re-send them again mail-at-a-time? This would seem the easiest way to ensure no mail remains on the old box.
Suggestions gratefully recieved. _________________ "Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey." |
|
Back to top |
|
|
philthedrill n00b
Joined: 10 Jan 2003 Posts: 18 Location: Moscow, ID
|
Posted: Fri Jan 10, 2003 10:45 pm Post subject: |
|
|
Some options:
1. You could IMAP to both of your machines with a client like Outlook Express. You should be able to move messages between folders of different machines.
2. If that's too much, then just copy the /var/spool/mail/ files over to the new box (in some other directory) and concatenate them:
cat /tmp/janeuser >> /var/spool/mail/janeuser
(of course, back up everything first, and make sure to use >> and not >) |
|
Back to top |
|
|
mr-simon Guru
Joined: 22 Nov 2002 Posts: 367 Location: Leamington Spa, Warks, UK
|
Posted: Sat Jan 11, 2003 1:25 am Post subject: |
|
|
philthedrill wrote: | 1. You could IMAP to both of your machines with a client like Outlook Express. You should be able to move messages between folders of different machines. |
Eep... Sounds like Microsoft. :p
Erm.... There's about 150 user accounts here so that sounds laborious.
philthedrill wrote: | 2. If that's too much, then just copy the /var/spool/mail/ files over to the new box (in some other directory) and concatenate them:
cat /tmp/janeuser >> /var/spool/mail/janeuser
(of course, back up everything first, and make sure to use >> and not >) |
Aye. That would work, 'cept qmail/vpopmail users maildirs (target format) and sendmail uses mboxes (current format). - So... Not quite what I want.
Is there perhaps an mbox2maildir thingie or somesuch? _________________ "Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey." |
|
Back to top |
|
|
philthedrill n00b
Joined: 10 Jan 2003 Posts: 18 Location: Moscow, ID
|
Posted: Sat Jan 11, 2003 2:14 am Post subject: |
|
|
Quote: | Is there perhaps an mbox2maildir thingie or somesuch? |
OK. Now I understand. Sorry about that.
Check out qmail's site. Specifically, the section labeled "maildir" in the table of contents.
Here's an mbox2maildir script:
http://qmail.presys.com/mbox2maildir
Would this work?
--phil |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
|
Back to top |
|
|
|