Ok I am pretty new to using linux and sendmail and I have two questions.
1. So lets say from the list below I want to forward the first message to another email outside like email@example.com
how would I do that via the command line?
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 3 messages 3 unread
>U 1 firstname.lastname@example.org Wed Sep 20 04:02 99/4299 "LogWatch for onefish.stjosephswb.com"
U 2 email@example.com Thu Sep 21 04:02 99/4299 "LogWatch for onefish.stjosephswb.com"
U 3 firstname.lastname@example.org Thu Sep 21 16:05 23/972 "Cron <root@onefish> root /home/kshscripts/danrestart.ksh >> /home/kshscripts/logs/danrestart.log"
2. My second question is how do you forward all email sent to root?
Now I know you have to use the .forward file and I have it in /home of root and the contents of the .forward file is.
Thanks for your time.