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
me@gmail.com how would I do that via the command line?
Code:
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 3 messages 3 unread
>U 1 root@onefish.domain Wed Sep 20 04:02 99/4299 "LogWatch for onefish.stjosephswb.com"
U 2 root@onefish.domain Thu Sep 21 04:02 99/4299 "LogWatch for onefish.stjosephswb.com"
U 3 root@onefish.domain 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.