What is the purpose of mail spools?
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
If I understand correctly, a spool is a temporary storage location. Traditionally, the mail is stored in a "mail spool", a mailbox in the /var/spool/mail
directory, where users are expected to pick it up. Therefore, according to this view, once the mail has been read it should be deleted or moved elsewhere â most likely somewhere in the user's home directory.
This way of handling the mail doesn't seem very efficient to me. And where does a program such as procmail
fit into this scheme? If you have an MDA that automatically stores your mail into folders in your home directory, then why keep a mail spool at all?
add a comment |Â
up vote
6
down vote
favorite
If I understand correctly, a spool is a temporary storage location. Traditionally, the mail is stored in a "mail spool", a mailbox in the /var/spool/mail
directory, where users are expected to pick it up. Therefore, according to this view, once the mail has been read it should be deleted or moved elsewhere â most likely somewhere in the user's home directory.
This way of handling the mail doesn't seem very efficient to me. And where does a program such as procmail
fit into this scheme? If you have an MDA that automatically stores your mail into folders in your home directory, then why keep a mail spool at all?
2
Spooling is discussed here: en.wikipedia.org/wiki/Spooling#Uses_and_advantages, also take a look at my A as well as Gilles to this Q: unix.stackexchange.com/questions/82910/â¦
â slmâ¦
Aug 18 '14 at 0:58
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
If I understand correctly, a spool is a temporary storage location. Traditionally, the mail is stored in a "mail spool", a mailbox in the /var/spool/mail
directory, where users are expected to pick it up. Therefore, according to this view, once the mail has been read it should be deleted or moved elsewhere â most likely somewhere in the user's home directory.
This way of handling the mail doesn't seem very efficient to me. And where does a program such as procmail
fit into this scheme? If you have an MDA that automatically stores your mail into folders in your home directory, then why keep a mail spool at all?
If I understand correctly, a spool is a temporary storage location. Traditionally, the mail is stored in a "mail spool", a mailbox in the /var/spool/mail
directory, where users are expected to pick it up. Therefore, according to this view, once the mail has been read it should be deleted or moved elsewhere â most likely somewhere in the user's home directory.
This way of handling the mail doesn't seem very efficient to me. And where does a program such as procmail
fit into this scheme? If you have an MDA that automatically stores your mail into folders in your home directory, then why keep a mail spool at all?
asked Aug 18 '14 at 0:51
Ernest A
82031022
82031022
2
Spooling is discussed here: en.wikipedia.org/wiki/Spooling#Uses_and_advantages, also take a look at my A as well as Gilles to this Q: unix.stackexchange.com/questions/82910/â¦
â slmâ¦
Aug 18 '14 at 0:58
add a comment |Â
2
Spooling is discussed here: en.wikipedia.org/wiki/Spooling#Uses_and_advantages, also take a look at my A as well as Gilles to this Q: unix.stackexchange.com/questions/82910/â¦
â slmâ¦
Aug 18 '14 at 0:58
2
2
Spooling is discussed here: en.wikipedia.org/wiki/Spooling#Uses_and_advantages, also take a look at my A as well as Gilles to this Q: unix.stackexchange.com/questions/82910/â¦
â slmâ¦
Aug 18 '14 at 0:58
Spooling is discussed here: en.wikipedia.org/wiki/Spooling#Uses_and_advantages, also take a look at my A as well as Gilles to this Q: unix.stackexchange.com/questions/82910/â¦
â slmâ¦
Aug 18 '14 at 0:58
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
8
down vote
accepted
With traditional unix mail clients, /var/spool/mail/$USER
is the user's inbox. The emails remain there as long as the user decides not to archive the mail. Some mail clients insist on moving emails to a proprietary file, or offer the option to move emails to a different file after reading. Users can choose which mail client they use and how they configure it.
If you run a mail delivery agent (MDA) such as procmail, you can set it up to deliver some emails to the system inbox, or to deliver all emails to files under your home directory (and you can call one of them your inbox if you want). It's a user choice.
Conceptually, you can think of /var/spool/mail/$USER
as being a file in your home directory. It pretty much belongs to you. It's in a different location because that file needs to be available during email delivery. Users aren't allowed to create a broken symbolic link or a named pipe where the system expects a regular file, for example, which avoids potentially nasty errors in the delivery system. There are sites where the home directories are on one or more file servers and the mail spools are on a different server.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
accepted
With traditional unix mail clients, /var/spool/mail/$USER
is the user's inbox. The emails remain there as long as the user decides not to archive the mail. Some mail clients insist on moving emails to a proprietary file, or offer the option to move emails to a different file after reading. Users can choose which mail client they use and how they configure it.
If you run a mail delivery agent (MDA) such as procmail, you can set it up to deliver some emails to the system inbox, or to deliver all emails to files under your home directory (and you can call one of them your inbox if you want). It's a user choice.
Conceptually, you can think of /var/spool/mail/$USER
as being a file in your home directory. It pretty much belongs to you. It's in a different location because that file needs to be available during email delivery. Users aren't allowed to create a broken symbolic link or a named pipe where the system expects a regular file, for example, which avoids potentially nasty errors in the delivery system. There are sites where the home directories are on one or more file servers and the mail spools are on a different server.
add a comment |Â
up vote
8
down vote
accepted
With traditional unix mail clients, /var/spool/mail/$USER
is the user's inbox. The emails remain there as long as the user decides not to archive the mail. Some mail clients insist on moving emails to a proprietary file, or offer the option to move emails to a different file after reading. Users can choose which mail client they use and how they configure it.
If you run a mail delivery agent (MDA) such as procmail, you can set it up to deliver some emails to the system inbox, or to deliver all emails to files under your home directory (and you can call one of them your inbox if you want). It's a user choice.
Conceptually, you can think of /var/spool/mail/$USER
as being a file in your home directory. It pretty much belongs to you. It's in a different location because that file needs to be available during email delivery. Users aren't allowed to create a broken symbolic link or a named pipe where the system expects a regular file, for example, which avoids potentially nasty errors in the delivery system. There are sites where the home directories are on one or more file servers and the mail spools are on a different server.
add a comment |Â
up vote
8
down vote
accepted
up vote
8
down vote
accepted
With traditional unix mail clients, /var/spool/mail/$USER
is the user's inbox. The emails remain there as long as the user decides not to archive the mail. Some mail clients insist on moving emails to a proprietary file, or offer the option to move emails to a different file after reading. Users can choose which mail client they use and how they configure it.
If you run a mail delivery agent (MDA) such as procmail, you can set it up to deliver some emails to the system inbox, or to deliver all emails to files under your home directory (and you can call one of them your inbox if you want). It's a user choice.
Conceptually, you can think of /var/spool/mail/$USER
as being a file in your home directory. It pretty much belongs to you. It's in a different location because that file needs to be available during email delivery. Users aren't allowed to create a broken symbolic link or a named pipe where the system expects a regular file, for example, which avoids potentially nasty errors in the delivery system. There are sites where the home directories are on one or more file servers and the mail spools are on a different server.
With traditional unix mail clients, /var/spool/mail/$USER
is the user's inbox. The emails remain there as long as the user decides not to archive the mail. Some mail clients insist on moving emails to a proprietary file, or offer the option to move emails to a different file after reading. Users can choose which mail client they use and how they configure it.
If you run a mail delivery agent (MDA) such as procmail, you can set it up to deliver some emails to the system inbox, or to deliver all emails to files under your home directory (and you can call one of them your inbox if you want). It's a user choice.
Conceptually, you can think of /var/spool/mail/$USER
as being a file in your home directory. It pretty much belongs to you. It's in a different location because that file needs to be available during email delivery. Users aren't allowed to create a broken symbolic link or a named pipe where the system expects a regular file, for example, which avoids potentially nasty errors in the delivery system. There are sites where the home directories are on one or more file servers and the mail spools are on a different server.
edited Sep 17 at 5:51
railgun
7019
7019
answered Aug 18 '14 at 1:04
Gilles
512k12010141545
512k12010141545
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f150715%2fwhat-is-the-purpose-of-mail-spools%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
Spooling is discussed here: en.wikipedia.org/wiki/Spooling#Uses_and_advantages, also take a look at my A as well as Gilles to this Q: unix.stackexchange.com/questions/82910/â¦
â slmâ¦
Aug 18 '14 at 0:58