Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-27-2008, 10:57 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
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
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!
Old 03-28-2008, 07:15 AM   #2
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Outlook can not send mail to external domains fhejazi General 7 09-08-2006 02:48 PM
send mail to external email address hamish Linux - Networking 8 12-10-2004 09:17 AM
Can receive but can't send external mail (with kmail) cjheeney Linux - Newbie 7 12-05-2003 03:13 AM
Mailbox vulnerable-directory /var/spool/mail must have 1777 protection. magyartoth Linux - Security 3 02-11-2002 12:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration