Mail to vmail via LTMP migration script

Issue #4 invalid
Melvyn Sopacua created an issue

I 've made the above long ago. Checked backups, old and long forgotten repos, but it's gone. So I came accross vmm and figured that this script would fit perfectly in this project.

How it worked: - Any mail format that the python mailbox module could handle could be opened by the script. - All mail in there was then resent to the domain socket, using the top level received line for HELO and MAIL FROM information and X-Original-To, Delivered-To or the To header for RCPT TO. - Using a recipient delimiter I was also able to send all spam to the spam folder, test and adjust the glue with dspam and train the filter.

If you guys agree that it fits within the VMM toolset, then I'd rather rebuild it here then loose it again ;)

Comments (2)

  1. Pascal Volk repo owner

    Sorry, I can't see the point of integrating something like that into vmm.

    Your script can open the mailbox (if supported by Python's mailbox module). Then it will loop over all messages of the opened mailbox. Finally each message will be (re-)sent through Dovecot's LMTP to it's destination mailbox. Dovecot's LMTP will perform the userdb lookup for each message.

    Where should vmm be involved?

  2. Log in to comment