[CentOS] send existing root email to another user

Lists lists at rheel.co.nz
Tue Dec 1 02:53:56 UTC 2009


Mathew S. McCarrell wrote:
> On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists at rheel.co.nz 
> <mailto:lists at rheel.co.nz>> wrote:
>
>     >
>     > Kate,
>     >
>     > You need to modify /etc/aliases to have something like:
>     >
>     > root:          user at gmail.com <mailto:user at gmail.com>
>     <mailto:user at gmail.com <mailto:user at gmail.com>>
>     >
>     >
>     > 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 at gmail.com 
> <mailto:user at gmail.com>
>
> Hope that helps.
> Matt
You are a legend!!!! Thanks so much.
Kate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20091201/9b3c864c/attachment.html 


More information about the CentOS mailing list