Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a CentOS 5.6 VM installation and currently have a handful of emails that I would like to get access to.

When I run mail as root, I get:

[root@dev mail]# mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/root": 11 messages 11 unread
>U  1 logwatch@www.crmpicco.d  Mon Feb 17 10:06  44/1625  "Logwatch for dev.localdomain (Linux)"

Where is that file stored? I would like to send it on to someone for review.

I can't see it in /var/spool/mail/.

share|improve this question

1 Answer 1

But it should, indeed, be in there; try an "ls -al /var/spool/mail/root". That should show it to you. Note, however, that you will only have that one mail file; "mbox"-formatted mail (which is what's generally stored in /var/spool/mail/) compiles each folder into one aggregate ASCII file that the client then parses. This is notably different from the way that maildir works, where each e-mail is a different on-disk file, with folders being implemented by way of separate directories.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.