Re: send existing root email to another user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists@xxxxxxxxxxx> wrote:
>
> Kate,
>
> You need to modify /etc/aliases to have something like:
>
> root:          user@xxxxxxxxx <mailto:user@xxxxxxxxx>
>
>
> You should then run /usr/bin/newaliases to make these changes active||.
>
> Matt
Hi Matt,

I have done this and it works for new mail arriving but I need to onsend
the existing mail.

Ah, I misread what you were looking to do.  You should be able to do the following then.

cat /var/spool/mail/root | mail -s "Old Root Emails" user@xxxxxxxxx

Hope that helps.
Matt
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux