What is the purpose of mail spools?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
6
down vote

favorite
4












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?










share|improve this question

















  • 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















up vote
6
down vote

favorite
4












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?










share|improve this question

















  • 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













up vote
6
down vote

favorite
4









up vote
6
down vote

favorite
4






4





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?










share|improve this question













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?







email






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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













  • 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











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.






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer


























      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.






      share|improve this answer
























        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.






        share|improve this answer














        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 17 at 5:51









        railgun

        7019




        7019










        answered Aug 18 '14 at 1:04









        Gilles

        512k12010141545




        512k12010141545



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay