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
On Mon, Nov 30, 2009 at 9:32 PM, Lists lists@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@gmail.com
You should then run /usr/bin/newaliases to make these changes active.
Matt
-- Mathew S. McCarrell Clarkson University '10
mccarrms@gmail.com mccarrms@clarkson.edu 1-518-314-9214
Mathew S. McCarrell wrote:
On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists@rheel.co.nz mailto:lists@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@gmail.com mailto:user@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.
Thanks Kate
On Mon, Nov 30, 2009 at 8:42 PM, Lists lists@rheel.co.nz 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.
On Mon, Nov 30, 2009 at 9:42 PM, Lists lists@rheel.co.nz wrote:
Kate,
You need to modify /etc/aliases to have something like:
root: user@gmail.com mailto:user@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@gmail.com
Hope that helps. Matt
Mathew S. McCarrell wrote:
On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists@rheel.co.nz mailto:lists@rheel.co.nz> wrote:
> > Kate, > > You need to modify /etc/aliases to have something like: > > root: user@gmail.com <mailto:user@gmail.com> <mailto:user@gmail.com <mailto:user@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@gmail.com mailto:user@gmail.com
Hope that helps. Matt
You are a legend!!!! Thanks so much. Kate
Mathew S. McCarrell wrote:
On Mon, Nov 30, 2009 at 9:42 PM, Lists <lists@rheel.co.nz mailto:lists@rheel.co.nz> wrote:
> > Kate, > > You need to modify /etc/aliases to have something like: > > root: user@gmail.com <mailto:user@gmail.com> <mailto:user@gmail.com <mailto:user@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@gmail.com mailto:user@gmail.com
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
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@rheel.co.nz wrote: > > Kate, > > You need to modify /etc/aliases to have something like: >
> root: user@gmail.com <mailto:user@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@gmail.com
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
Craig White wrote:
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@rheel.co.nz wrote: > > Kate, > > You need to modify /etc/aliases to have something like: >
> root: user@gmail.com <mailto:user@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@gmail.com
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).
This is also the way to get the archives from a mailing list, or at least all the thousands of mailing lists whose archives are in mbox format. And for Thunderbird there is a nice addon: ImportExportTools that is currently at v 2.3.1
This approach definitely processes any attachments.
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?
mutt -f /var/mail/root
tag all messages: "T." bounce all tagged messages: ";b" enter address to bounce to
On Mon, Nov 30, 2009 at 10:09 PM, Lists lists@rheel.co.nz wrote:
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
Not that I can think of but Craig's suggestion might work.
Matt
-- Mathew S. McCarrell Clarkson University '10
mccarrms@gmail.com mccarrms@clarkson.edu 1-518-314-9214
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?
install mutt if you haven't already. (yum install mutt)
as root, go into mutt. you should see all your messages, or at least the first screenful of them.
tag all the messages by... T .* <enter> (no spaces, just shift-T, then .* to tag all and enter to make the tag happen) now each message header should show a *
;b
to 'bounce' all messages that are taggged. give it an address to 'bounce' them too, and voila. they remain in the mailbox, so...
;d
and yes to delete all. q to quit (it won't actually purge the deleted messages til you quit)
in general, ; means the next command is executed on all tagged messages.
I'm sure there's probably a more elegant way to do this, but this is thie quickest way I know.
John R Pierce wrote:
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?
install mutt if you haven't already. (yum install mutt)
as root, go into mutt. you should see all your messages, or at least the first screenful of them.
tag all the messages by... T .* <enter> (no spaces, just shift-T, then .* to tag all and enter to make the tag happen) now each message header should show a *
;b
to 'bounce' all messages that are taggged. give it an address to 'bounce' them too, and voila. they remain in the mailbox, so...
;d
and yes to delete all. q to quit (it won't actually purge the deleted messages til you quit)
in general, ; means the next command is executed on all tagged messages.
I'm sure there's probably a more elegant way to do this, but this is thie quickest way I know.
Thank you this worked perfectly.
John R Pierce wrote:
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?
install mutt if you haven't already. (yum install mutt)
<snip>
Thank you this worked perfectly.
Yes. mutt is a *very* good answer. I tend to put it on systems, even ones I'm running X and t-bird on. It's a Good Thing to have a command line mail tool (as opposed to mail, a "friendly and conformable mail tool", for folks who like lying on beds of nails....
mark
Mathew S. McCarrell wrote:
On Mon, Nov 30, 2009 at 9:32 PM, Lists <lists@rheel.co.nz mailto:lists@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@gmail.com mailto:user@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@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@gmail.com mailto:mccarrms@gmail.com mccarrms@clarkson.edu mailto:mccarrms@clarkson.edu 1-518-314-9214
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-----Original Message----- From: Lists Sent: Monday, November 30, 2009 21:33 To: centos@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@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.
Jason Pyeron wrote:
-----Original Message----- From: Lists Sent: Monday, November 30, 2009 21:33 To: centos@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.
hmm I tried that but nothing seemed to happen. I used Matts suggestion of cat /var/spool/mail/root | mail -s "mail" user@domain.com 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@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.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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.