2

I have server disks from a Linux system. Linux has crashed. I would like to know how to check where the mails are stored in the system (probably postfix). I can only view files in Windows - the Linux system is not functioning.

3 Answers 3

1

You will need something that can read the file system of the Linux server. That is actually hard on Windows, because there are not great drivers available. You might do better with a "LiveCD" style bootable Linux system.

To read the disk you need something that can understand the file system. Since you don't specify a distribution, the most likely format is ext3, or perhaps ext4, for which a Windows ext2 IFS driver or a user-space tool that reads the file system are the best bet.

Once you have access to the disk, Postfix stores email in /var/spool/postfix, in a binary format that you really want the postcat(1) tool to extract in human readable format. The basic data is plain enough text, though.

The configuration of Postfix, which can - but rarely does - override the configuration is in /etc/postfix on a typical system.

2
  • I already found it out. I actually want to check where mails are placed by postfix - some configuration file; where to find it?
    – algorytmus
    Mar 1, 2012 at 20:46
  • 1
    Sorry, that wasn't clear; I thought you needed to get to the disk, not to the Postfix bits. I extended the answer to help out there. Mar 1, 2012 at 20:49
2

Mail is usually stored in /var/mail on Linux systems.

1
  • 1
    Only root file in mbox format (in /var/mail). Only mails received by root@ (approximately 10 mails). There must be more accounts and more mails. But where?
    – algorytmus
    Mar 1, 2012 at 21:07
1

Try looking under:

/var/mail
/var/spool/mail
/var/vmail
1
  • 1
    Can you add some context to this?
    – Burgi
    Oct 12, 2016 at 12:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .