3

I look exactly the same : enter image description here But What makes me suprised is that they are synchronous. enter image description here

migrated from stackoverflow.com Jan 20 '12 at 6:34

This question came from our site for professional and enthusiast programmers.

  • 2
    This might help! – user96753 Jan 20 '12 at 6:27
5

/var/spool/mail is a symbolic link to /var/mail on my Debian/Sid system:

 % ls -ld /var/mail /var/spool/mail
 drwxrwsr-x 2 root mail 4096 Dec 31 17:46 /var/mail
 lrwxrwxrwx 1 root root    7 May 12  2011 /var/spool/mail -> ../mail
  • 3
    thx, /var/mail is a symbolic link to /var/spool/mail in RHEL 5 – 爱国者 Jan 21 '12 at 0:57
  • 2
    Gentoo also links /var/mail to /var/spool/mail. – 比尔盖子 Feb 3 '15 at 17:10
2

What you ask is really a matter of preferences; meaning: whatever mail delivery daemon you have in use on your system can use either or.

More specifically, it's a mere matter of preference of options laid out by the FHS.

Typically, on more complex mail configurations, things like mail queue, deferred messages, etc are stored in a structure in /var/spool/, independent of /var/mail.

You can see /var/mail used separately from /var/spool/mail (AKA: not symlinked). Local mail will end up in /var/mail - while SMTP daemon handling email for virtual mailboxes, etc will happen in /var/spool/mail

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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