How do I forward old root emails from the root mailbox to my
address?
Olivier Nicole
on at cs.ait.ac.th
Thu Apr 26 06:29:39 UTC 2007
> but is there a simple way for me to send all these old mails in
> root's mailbox to my email address without logging in through
> pop3/imap?
A combination of cat /var/mail/root | formail -s and something.
cat /var/mail/root | formail -s will read /var/mail/root, separate
each message and pipe it to the command that follow the -s. The
command could be a sendmail new at email.address.com or something, you may have to
investigate.
cat /var/mail/root | formail -s /usr/sbin/sendmail new at email.address.com
Olivier
More information about the freebsd-questions
mailing list