Moving or Restoring Postfix QueueLogin as superuser by \r\nsu - \r\nSTOP postfix server \r\n/etc/init.d/postfix stop \r\nNavigate to directory where you want to move server \r\ncd /path/to/directory/ \r\nCopy a directory named maildrop from original queue \r\ncp -R /var/spool/postfix/maildrop/ . \r\ncd maildrop \r\nMake sure that the owners of new maildrop directory are postfix & postdrop & having proper access chown postfix:postdrop maildrop \r\nchmod 730 maildrop \r\nnow execute following commands to restore existing queues in maildrop folder \r\ncp -R /var/spool/postfix/incoming/ . \r\ncp -R /var/spool/postfix/active/ . \r\ncp -R /var/spool/postfix/deferred/ . \r\nfind incoming active deferred -type f -exec mv '{}' . ';' \r\nrm -rf incoming active deferred \r\nnow we can start the postfix server as \r\n/etc/init.d/postfix restart /etc/init.d/postfix status \r\nFurther Reading \r\n
|
Categories
|