when I type mailq on SSH command line terminal. I got list of mail.

However, the server does not have mail server to send those mails.

How can I export the mail queue and export it to another server?

Thank You

link|improve this question

feedback

migrated from stackoverflow.com Feb 21 '11 at 6:34

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 2 down vote accepted

Copy /var/spool/mqueue directory:

old# tar -zpcvf mqueue.tar.gz /var/spool/mqueue
old# scp mqueue.tar.gz newserver:
new# tar -zpxvf mqueue.tar.gz -C /
link|improve this answer
it works! thanks a lot! – hachiari Feb 28 '11 at 5:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.