LX0-104 · Question #288
An administrator is running an email server configured with the default settings. In which directory will the administrator commonly find the delivered mail for the user foo?
The correct answer is A. /var/spool/mail. Under default settings on a Linux email server, delivered mail for a user like 'foo' is commonly found in the /var/spool/mail/ directory.
Question
Options
- A/var/spool/mail
- B/home/foo/mail
- C/var/mail/spool
- D/var/users/mail
How the community answered
(37 responses)- A89% (33)
- B3% (1)
- C5% (2)
- D3% (1)
Why each option
Under default settings on a Linux email server, delivered mail for a user like 'foo' is commonly found in the `/var/spool/mail/` directory.
On most Unix-like systems, including Linux, the default location for storing incoming mail for users (typically in Mbox format) is within the `/var/spool/mail/` directory. Each user's mail is stored in a file within this directory, usually named after their username (e.g., `/var/spool/mail/foo`).
`/home/foo/mail` is a possible location if mail delivery agents are configured to use Maildir format or store mail in user home directories, but it is not the traditional default Mbox spool directory.
While `/var/mail` is also a common mail spool directory (often a symlink to `/var/spool/mail`), `/var/mail/spool` is not a standard default path.
`/var/users/mail` is not a standard default directory for user mailboxes on Linux systems.
Concept tested: Linux email system mail spool locations
Source: https://tldp.org/HOWTO/Mail-Administrator-HOWTO/x45.html
Topics
Community Discussion
No community discussion yet for this question.