Re: send existing root email to another user

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



Mathew S. McCarrell wrote:
> On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists@xxxxxxxxxxx 
> <mailto:lists@xxxxxxxxxxx>> wrote:
>
>     Hi all,
>
>     I'm running Centos 5.4
>     I have a pile of emails in my root users /var/spool/mail/root file
>     I need to send this all to another address (preferrably external but
>     local would possibly do)
>
>     I have searched a lot but can't find any way to do this. I have set it
>     so future emails get forwarded to my external address but I also
>     need to
>     shift the existing emails.
>
>
> 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||.

An alternative is to create the file:  /root/.forward with the one line:

user@domain

I don't know which of these approaches is more efficient.  With the 
.forward, the change takes effect immediately.

>
> Matt
>
> --
> Mathew S. McCarrell
> Clarkson University '10
>
> mccarrms@xxxxxxxxx <mailto:mccarrms@xxxxxxxxx>
> mccarrms@xxxxxxxxxxxx <mailto:mccarrms@xxxxxxxxxxxx>
> 1-518-314-9214
> ------------------------------------------------------------------------
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>   
_______________________________________________
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