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. 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.. -- Pete -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
