Anthony Georges

Fetchmail to move mailboxes

I have just moved my mailbox from my old ISP to a new server I recently built. To move my mail I used fetchmail with the following options:

fetchmail -K -a -p IMAP -S 127.0.0.1 –smtpname destination@email.com -v old.isp.com.au -u oldISPusername -r “Inbox.folder”

127.0.0.1 may need to be replaced with your SMTP server. I used 127.0.0.1 as I was running fetchmail on the new server.I had to run the fetchmail command for every mail folder in my old mailbox and I had to re-run my mailbox filters to resort all the mail.Note the -K option will delete the mail from your old mailbox.


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>