[
    {
        "role": "user",
        "content": "on%20debian%2013%2C%20by%20default%2C%20where%20does%20mail%20for%20root%20go%3F"
    },
    {
        "role": "assistant",
        "content": "On a default Debian 13 (Trixie) system, mail addressed to `root` is usually delivered to the system mailbox located at:\n\n```\n/var/spool/mail/root\n```\n\nor equivalently:\n\n```\n/var/mail/root\n```\n\nHere are the relevant details and context:\n\n---\n\n### \ud83d\udcc2 Default Mail Location\n\n- Debian\u2019s **Filesystem Hierarchy Standard (FHS)** and Debian policy define the system mail spool directory as `/var/mail`. ([debian.org](https://www.debian.org/doc/debian-policy/policy.pdf?utm_source=openai))  \n- System-generated mail (cron jobs, system daemons, etc.) for `root` ends up in the file `/var/spool/mail/root`. Some tools refer to `/var/mail/root` which often is a symlink or just another path to the same mailbox. ([clients.sisrv.net](https://clients.sisrv.net/knowledgebase/143/You-have-new-mail-message-in-Linux.html?utm_source=openai))\n\n---\n\n### \ud83d\udee0\ufe0f Aliases & Forwarding\n\nEven though root\u2019s mail goes to a local mailbox by default, it's common practice to forward it to a non-root user to avoid manually logging in as root just to check system notifications.\n\n- This forwarding is handled using the `/etc/aliases` file. You might see a line like:\n\n  ```\n  root: username\n  ```\n\n  where \"username\" is a regular user on the system. After editing `/etc/aliases`, you must run the `newaliases` command to apply changes. ([tech.its.iastate.edu](https://www.tech.its.iastate.edu/linux/linuxed/Mail/Email.pdf?utm_source=openai))\n\n---\n\n### \u2705 Summary\n\n- Default location for `root` mail: `/var/spool/mail/root` (or `/var/mail/root`)  \n- To forward mail for root elsewhere: configure `/etc/aliases` and run `newaliases`\n\nIf you\u2019re using a non-default mail transfer agent (MTA) or have changed mail delivery settings, the location might differ. Let me know if you'd like to check based on your current setup!"
    }
]