1

Topic: Migrate users/password/mailbox from postfixadmin to iredmail

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Purchased License for iRedAdmin Pro . Want to migrate users and password from old postfixadmin and also sync mailbox from old server(postfix/dovecot/mysql) to iredmail. Is there  any script to do it?  if so please help me with that.

2

Re: Migrate users/password/mailbox from postfixadmin to iredmail

- We don't have such script, but since iRedMail was based on PostfixAdmin in the beginning, it should be very easy to migrate username + password (they map to column `mailbox.username` and `mailbox.password`).
- About mailbox, the most important part is the maildir path defined in SQL database and the real one on file system. Please make sure they're matched, otherwise user will not be able to see old messages. You can copy mailboxes with tool like "rsync" (recommended), or just "scp"

Note: maildir path is queried from SQL db like this (FYI: https://github.com/iredmail/iRedMail/bl … conf#L19):

CONCAT(mailbox.storagebasedirectory, '/', mailbox.storagenode, '/', mailbox.maildir)

Also, string "/Maildir" will be appended to the maildir path (FYI: https://github.com/iredmail/iRedMail/bl … conf#L65).

For example, if you have SQL column/value like this:

storagebasedirectory="/var/vmail"
storagenode="vmail1"
maildir="domain.com/username/"

The real mailbox should be: /var/vmail/vmail1/domain.com/username/Maildir/.
And the per-user sieve rule directory will be: /var/vmail/vmail1/domain.com/username/sieve/.

Easy enough?

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee