Link to home
Start Free TrialLog in
Avatar of periwinkle
periwinkleFlag for United States of America

asked on

re-sending email from a mailbox during server migration

I'm moving mailservers, and for a particular user, I'd like to resend the email from his mailbox to the new server.  I remember that there is a command to do this, but for the life of me, I'm drawing a blank... perhaps it was formail?
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of periwinkle

ASKER

Thanks Wesly -

I had finally found it in my notes as:

formail -f -s sendmail user@address < /var/spool/mail/user-mailbox

the -f according the man pages means to "Force formail to simply pass along any non-mailbox format (i.e., don't  generate  a  `From  ' line as the first line)."

Thanks  - you get the points, and this goes into my bookmarks!