Skip to content

✉️ A very simple tool that copies the content from one Mailbox to another. Useful when migrating email accounts between different servers.

Notifications You must be signed in to change notification settings

DamageESP/mail-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail-migrator

Easily migrate an email account to another server using NodeJS.

Usage

Create an index.js file, using index.example.js as a template:

const Migrator = require('../lib/Migrator')

const fromConfig = {
  host: 'myawesomesite.com',
  port: 993, 
  user: '[email protected]',
  pass: 'password',
  requireTLS: true
}

const toConfig = {
  host: 'myothersite.com',
  port: 993,
  user: '[email protected]',
  pass: 'password',
  requireTLS: true
}

const migrator = new Migrator(fromConfig, toConfig)

migrator.init().then(async () => {
  await migrator.migrate()
  console.log('migration complete')
})

Save the file and then run npm run dev (probably will be changed to a different command).

About

✉️ A very simple tool that copies the content from one Mailbox to another. Useful when migrating email accounts between different servers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published