From: (no name) (no email)
Date: Sat Feb 28 2004 - 09:35:17 EST
On Sat, 28 Feb 2004, Arbelaez, Jim wrote:
> It would be benefical to know how to move queues or mail to a different server?
>
Create /var/spool/postfix/moved (same filesystem as Postfix queue
directories). Create /tmp/main.cf:
# If host not fully qualified
mydomain=example.com
queue_directory=/var/spool/postfix/moved
Run the "postfix -c /tmp check" command to create the queue directory
hierarchy under /var/spool/postfix/moved. Copy all the queue files from
the source system into /var/spool/postfix/moved/maildrop.
Run "postsuper" to update the queue file names, which must match their
inode numbers:
MAIL_CONFIG=/tmp postsuper -s
MAIL_CONFIG=/tmp postsuper -s
MAIL_CONFIG=/tmp postsuper -s
The third (or perhaps second) time should report no files to fix.
Finally move all the renamed queue files into the primary maildrop
directory, safe now that the file name reflects the inode number.
mv /var/spool/postfix/moved/maildrop/* /var/spool/postfix/maildrop
-- Viktor.
|
|
|