Topic: Migrate postfix postqueue between servers
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Debian 10.4
- 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.
====
I recently migrated iRedMail to a new mail server. Everything is moved over except the outgoing messages in the old server's queue, visible with 'postqueue -p'.
The two servers run different OSs and use different ID formats for messages in the queue:
old (FreeBSD): F289150ACEE
new (Debian): 49VYHl2BkSzxQ78
Is it safe to just rsync the /var/spool/postfix/defer and /var/spool/postfix/deferred contents over to the new machine? One potential problem I see is that old server's hostname is in the message headers. Is there some safe way to migrate the queue? Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.