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
2009-Dec-01 02:39 UTC
[CentOS] send existing root email to another user
On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists at rheel.co.nz> 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 at gmail.com You should then run /usr/bin/newaliases to make these changes active. Matt -- Mathew S. McCarrell Clarkson University '10 mccarrms at gmail.com mccarrms at clarkson.edu 1-518-314-9214 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091130/bf2d6190/attachment-0001.html>
Mathew S. McCarrell wrote:> On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists at rheel.co.nz > <mailto:lists at rheel.co.nz>> 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 at gmail.com <mailto:user at gmail.com> > > > You should then run /usr/bin/newaliases to make these changes active||. > > MattHi Matt, I have done this and it works for new mail arriving but I need to onsend the existing mail. Thanks Kate
> -----Original Message----- > From: Lists > Sent: Monday, November 30, 2009 21:33 > To: centos at centos.org > 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 at centos.org > 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.
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.If you are running an imap server (dovecot) you can connect to both accounts from any imap client (evolution, thunderbird, even outlook) and select the messages in one account and drag to a folder in another account. -- Les Mikesell lesmikesell at gmail.com
Mathew S. McCarrell wrote:> On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists at rheel.co.nz > <mailto:lists at rheel.co.nz>> 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 at gmail.com <mailto:user at gmail.com> > > > 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 at 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 at gmail.com <mailto:mccarrms at gmail.com> > mccarrms at clarkson.edu <mailto:mccarrms at clarkson.edu> > 1-518-314-9214 > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >