LX0-104 · Question #472
The user bob complains that he cannot access his email. In which directory would you look to see if there is any deliverable email for him?
The correct answer is A. /var/spool/mail. Undelivered or incoming mail for users is typically stored in a centralized spool directory before being accessed by a mail client. This location allows mail servers to deliver messages to a standard mailbox file for each user.
Question
Options
- A/var/spool/mail
- B/var/mail/mqueue
- C/var/spool/mqueue
- D/home/bob/.mail
How the community answered
(21 responses)- A95% (20)
- D5% (1)
Why each option
Undelivered or incoming mail for users is typically stored in a centralized spool directory before being accessed by a mail client. This location allows mail servers to deliver messages to a standard mailbox file for each user.
In many Unix-like systems, including Linux, the traditional location for user mailboxes (where incoming mail is spooled before being read) is /var/spool/mail. Each user typically has a file named after their username in this directory, e.g., /var/spool/mail/bob.
/var/mail/mqueue is not a standard directory for user mailboxes; mqueue often refers to a mail queue for outgoing or deferred messages, not user inboxes.
/var/spool/mqueue is a common location for the mail server's queue for outgoing or temporarily undeliverable messages, not the inbox for a specific user like bob.
/home/bob/.mail could be a custom mail directory or used by specific mail clients for local storage, but it is not the universal default location where the system initially spools incoming mail for user bob.
Concept tested: User mail spool directory
Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s08.html
Topics
Community Discussion
No community discussion yet for this question.