Dec 10

Moving mailboxes

by in Techie :: Techno ::

Moving mailboxes from one server to another can be a painful experience. Formail is a handy command that makes this a lot easier:
cd /var/spool/mail/;formail -Y -s sendmail -oi $user@domain < $mailbox

replace $user@domain with the real alias you want to send to eg. michele@blacknight.ie
replace $mailbox with the local mailbox name eg. michele1
The only thing to watch out for is that your sendmail doesn't try to deliver the mail locally!
Sendmail Cookbook

Related Posts:

  • No Related Posts

Comments are closed.