This one time, at band camp, Peter Hardy wrote: >On Fri, 2003-12-12 at 12:31, Jamie Wilkinson wrote: >> Now, the primary MX has changed and it would be nice to move the mboxes >> from the old mailserver to the new one.. but the caveat is that the new >> mail server probably doesn't know mbox so I can't just tar them up >> and transfer them... >> >> So, and this sounds really dumb anyway, but does anyone know of a way to >> feed the messages from their mboxes back into the mail queue so that >> they can then be delivered to the new primary MX? > >If your MTA is sendmail, then you can do something like: >formail -ds < mbox | sendmail -t >to inject it straight in to sendmail. But test it first :-) I don't >remember if sendmail can accept a whole mess of messages like that or >only one at a time. >I assume other MTAs have similar commands to manually inject messages.
MTA is very much like sendmail, you probably know which one :-) That looks correct, but I wasn't sure if I could just do something like that with sendmail; cool. I'd probably do formail -ds "sendmail -t" <mbox if it only likes one message at a time. >Alternatively, tar them up, transfer them, then use formail to pass them >to the local MDA like: >formail -ds procmail < mbox >But that needs to be done seperately for each user.. Unfortunately I'm in this situation because the new MX doesn't do mbox, nor does it have procmail/formail, and though it is able to unpack tarballs it's just not the platform I've got experience with :-) -- [EMAIL PROTECTED] http://spacepants.org/jaq.gpg -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
