LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 02-04-2004, 07:33 PM   #1
brentos
Member
 
Registered: Nov 2003
Distribution: Fedora Core3, RHEL3,4
Posts: 92

Rep: Reputation: 15
Sendmail forward


I have finally been able to get my sendmail to forward all mails from root on the server to another address and I have tested this by sending a message to root@servername.com and it forwarded it no problems

My problem is that there are 118 messages in /var/spool/mail/root and I want to know if there was any way I could get these messages forwarded some how cause I only have ssh access to the machince and reading mail with the mail command is not very easy.

Any ideas?
 
Old 04-21-2004, 10:13 AM   #2
carstenson
Member
 
Registered: Oct 2003
Location: Austin, TX
Distribution: RH 7.3, RH 9.0, FC4, Arch
Posts: 36

Rep: Reputation: 15
The easiest way of doing this is to send them to another local mailbox:

cat /var/spool/mail/root >>/var/spool/mail/<other user>

After confirming receipt of mail on this other user, you can rm /var/spool/mail/root.

I think to send these to a remote mailbox would require a program to read each individually and forward.
 
  


Reply


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
sendmail copy and forward steve_babbage Linux - Software 3 03-01-2004 07:48 AM
sendmail forward message exper Linux - Software 2 01-12-2004 02:25 AM
SENDMAIL: Forward only? tracer Linux - Software 5 09-11-2003 10:36 AM
Sendmail .forward Help echid Linux - Newbie 2 05-29-2002 03:09 PM
Using forward in sendmail for linux uglyjoe Linux - General 2 05-22-2002 04:11 PM


All times are GMT -5. The time now is 03:51 PM.

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