LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to send mail from /var/mail to external mailbox (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-send-mail-from-var-mail-to-external-mailbox-631036/)

senkyoshi 03-27-2008 10:57 AM

Trying to send mail from /var/mail to external mailbox
 
We have just switched servers from an internal linux server to an external server hosted by someone else. We have some old messages in /var/mail/[username] on our old server and I would like to send them to people's new email boxes. I tried:
cat /var/spool/mail/[username] | formail -s sendmail -io name@gmail.com
but I did not receive the emails at my gmail address. Any ideas why this didnt work? Anything else that I could try?
Thanks for your help!

waelaltaqi 03-28-2008 07:15 AM

If i was you, i won't try to resend the emails via send mail. I would try to transfer/copy data from one server to another via ssh tunnel or something of that nature.

Do some research on building an ssh tunnel between the two servers. That will enable you to transfer data between the two smoothly.


All times are GMT -5. The time now is 04:26 AM.