Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
When I run 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?
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 /
Required, but never shown