Lists | 1 Dec 03:32 2009
Picon

send existing root email to another user

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.

Thanks
Kate
Mathew S. McCarrell | 1 Dec 03:39 2009
Picon

Re: send existing root email to another user

On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists-LNdMZ6LjGF+lP80pJB477g@public.gmane.org> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org


You should then run /usr/bin/newaliases to make these changes active.

Matt

--
Mathew S. McCarrell
Clarkson University '10

mccarrms <at> gmail.com
mccarrms-CY3SLAzk4Gb2fBVCVOL8/A@public.gmane.org
1-518-314-9214
_______________________________________________
CentOS mailing list
CentOS@...
http://lists.centos.org/mailman/listinfo/centos
Lists | 1 Dec 03:42 2009
Picon

Re: send existing root email to another user

Mathew S. McCarrell wrote:
> On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists@... 
> <mailto:lists@...>> 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@... <mailto:user@...>
>
>
> 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.

Thanks
Kate
Larry Vaden | 1 Dec 03:43 2009
Picon

Re: send existing root email to another user

On Mon, Nov 30, 2009 at 8:42 PM, Lists <lists@...> wrote:
>
> I have done this and it works for new mail arriving but I need to onsend
> the existing mail.

IIRC procmail can do this for you.
Jason Pyeron | 1 Dec 03:48 2009
Picon

Re: send existing root email to another user


> -----Original Message-----
> From: Lists
> Sent: Monday, November 30, 2009 21:33
> To: centos@...
> Subject: [CentOS] send existing root email to another user
> 
> 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)
> 

You want to bounce the messages. Tools like Pine can do it throught a fancy UI.
Or you can:

formail -s procmail < mbox

Assuming you set it up to be delivered corectly now.

http://googleit1st.com/search?q=redeliver+mbox

> 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.
> 
> Thanks
> Kate
> 
> _______________________________________________
> CentOS mailing list
> CentOS@...
> http://lists.centos.org/mailman/listinfo/centos
> 

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
Mathew S. McCarrell | 1 Dec 03:50 2009
Picon

Re: send existing root email to another user

On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists-LNdMZ6LjGF+lP80pJB477g@public.gmane.org> wrote:
>
> Kate,
>
> You need to modify /etc/aliases to have something like:
>
> root:          user-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:user-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
>
> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Hope that helps.
Matt
_______________________________________________
CentOS mailing list
CentOS@...
http://lists.centos.org/mailman/listinfo/centos
Lists | 1 Dec 03:53 2009
Picon

Re: send existing root email to another user

Mathew S. McCarrell wrote:
On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists-LNdMZ6LjGF+lP80pJB477g@public.gmane.org> wrote:
>
> Kate,
>
> You need to modify /etc/aliases to have something like:
>
> root:          user-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:user-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
>
> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Hope that helps.
Matt
You are a legend!!!! Thanks so much.
Kate
_______________________________________________
CentOS mailing list
CentOS@...
http://lists.centos.org/mailman/listinfo/centos
Lists | 1 Dec 03:58 2009
Picon

Re: send existing root email to another user

Jason Pyeron wrote:
>> -----Original Message-----
>> From: Lists
>> Sent: Monday, November 30, 2009 21:33
>> To: centos@...
>> Subject: [CentOS] send existing root email to another user
>>
>> 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)
>>
>>     
>
> You want to bounce the messages. Tools like Pine can do it throught a fancy UI.
> Or you can:
>
> formail -s procmail < mbox
>
> Assuming you set it up to be delivered corectly now.
>
> http://googleit1st.com/search?q=redeliver+mbox
>   
hmm I tried that but nothing seemed to happen. I used Matts suggestion 
of cat /var/spool/mail/root | mail -s "mail" user@... which has 
set it as one email.

Thanks
Kate
>   
>> 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.
>>
>> Thanks
>> Kate
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS@...
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>     
>
>
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>  
>
> _______________________________________________
> CentOS mailing list
> CentOS@...
> http://lists.centos.org/mailman/listinfo/centos
>   
Lists | 1 Dec 04:09 2009
Picon

Re: send existing root email to another user

Mathew S. McCarrell wrote:
On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists-LNdMZ6LjGF+lP80pJB477g@public.gmane.org> wrote:
>
> Kate,
>
> You need to modify /etc/aliases to have something like:
>
> root:          user-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:user-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
>
> 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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Hope that helps.
Matt
Argh spoke to soon - its mostly all good apart from the attachments that are on the emails don't come through as attachments.
Is there any way I can send the so that they are received with attachments still intact?

Kate
_______________________________________________
CentOS mailing list
CentOS@...
http://lists.centos.org/mailman/listinfo/centos
Craig White | 1 Dec 04:29 2009

Re: send existing root email to another user

On Tue, 2009-12-01 at 16:09 +1300, Lists wrote:
> Mathew S. McCarrell wrote: 
> > On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists@...> wrote:
> >         >
> >         > Kate,
> >         >
> >         > You need to modify /etc/aliases to have something like:
> >         >
> >         
> >         > root:          user@... <mailto:user@...>
> >         >
> >         >
> >         > 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@...
> > 
> > Hope that helps.
> > Matt
> > 
> Argh spoke to soon - its mostly all good apart from the attachments
> that are on the emails don't come through as attachments.
> Is there any way I can send the so that they are received with
> attachments still intact?
----
secure shell copy (scp) the file over to whatever computer you want and
open the file with Thunderbird or Evolution (I think Import mail) as it
is an 'mbox' file. You can google how to open an mbox file with whatever
e-mail program you use for e-mail (but probably not outlook).

Craig

--

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Gmane