On Linux, what is the “mail” user account for?












1















There's an account mail and a group by the same name on my system, what's its purpose ?



It owns the /var/spool/mail directory (empty currently). I plan to use that directory, as well as that user to own the files of my "virtual" (ie, not tied to any real user account on the system) email accounts (instead of creating yet another user), is there anything wrong with that ?



I've searched already but sadly, Google only brings up results either about the mail command or how-tos about how to create mail user accounts (install an MTA, etc)...










share|improve this question

























  • Do you have sendmail or postfix installed? I guess the mail user is a standard user on Linux systems. I see it on my local Mint desktop and on a Centos machine.

    – SPRBRN
    Feb 24 '15 at 16:18











  • Postfix is installed but runs under its own "postfix" (as well as a bunch of other users like "postdrop").

    – user67289
    Feb 24 '15 at 16:20











  • I'm mainly asking whether some program that I'm not aware of can get this "mail" user's privileges and access the mail I'm going to store in /var/spool/mail.

    – user67289
    Feb 24 '15 at 16:21











  • If you don't know what it's used for, and if it's there, don't mess with it. Create your own folder and use that!

    – SPRBRN
    Feb 24 '15 at 16:32
















1















There's an account mail and a group by the same name on my system, what's its purpose ?



It owns the /var/spool/mail directory (empty currently). I plan to use that directory, as well as that user to own the files of my "virtual" (ie, not tied to any real user account on the system) email accounts (instead of creating yet another user), is there anything wrong with that ?



I've searched already but sadly, Google only brings up results either about the mail command or how-tos about how to create mail user accounts (install an MTA, etc)...










share|improve this question

























  • Do you have sendmail or postfix installed? I guess the mail user is a standard user on Linux systems. I see it on my local Mint desktop and on a Centos machine.

    – SPRBRN
    Feb 24 '15 at 16:18











  • Postfix is installed but runs under its own "postfix" (as well as a bunch of other users like "postdrop").

    – user67289
    Feb 24 '15 at 16:20











  • I'm mainly asking whether some program that I'm not aware of can get this "mail" user's privileges and access the mail I'm going to store in /var/spool/mail.

    – user67289
    Feb 24 '15 at 16:21











  • If you don't know what it's used for, and if it's there, don't mess with it. Create your own folder and use that!

    – SPRBRN
    Feb 24 '15 at 16:32














1












1








1








There's an account mail and a group by the same name on my system, what's its purpose ?



It owns the /var/spool/mail directory (empty currently). I plan to use that directory, as well as that user to own the files of my "virtual" (ie, not tied to any real user account on the system) email accounts (instead of creating yet another user), is there anything wrong with that ?



I've searched already but sadly, Google only brings up results either about the mail command or how-tos about how to create mail user accounts (install an MTA, etc)...










share|improve this question
















There's an account mail and a group by the same name on my system, what's its purpose ?



It owns the /var/spool/mail directory (empty currently). I plan to use that directory, as well as that user to own the files of my "virtual" (ie, not tied to any real user account on the system) email accounts (instead of creating yet another user), is there anything wrong with that ?



I've searched already but sadly, Google only brings up results either about the mail command or how-tos about how to create mail user accounts (install an MTA, etc)...







email postfix mail-command






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 25 mins ago









Rui F Ribeiro

40.1k1479135




40.1k1479135










asked Feb 24 '15 at 16:14







user67289




















  • Do you have sendmail or postfix installed? I guess the mail user is a standard user on Linux systems. I see it on my local Mint desktop and on a Centos machine.

    – SPRBRN
    Feb 24 '15 at 16:18











  • Postfix is installed but runs under its own "postfix" (as well as a bunch of other users like "postdrop").

    – user67289
    Feb 24 '15 at 16:20











  • I'm mainly asking whether some program that I'm not aware of can get this "mail" user's privileges and access the mail I'm going to store in /var/spool/mail.

    – user67289
    Feb 24 '15 at 16:21











  • If you don't know what it's used for, and if it's there, don't mess with it. Create your own folder and use that!

    – SPRBRN
    Feb 24 '15 at 16:32



















  • Do you have sendmail or postfix installed? I guess the mail user is a standard user on Linux systems. I see it on my local Mint desktop and on a Centos machine.

    – SPRBRN
    Feb 24 '15 at 16:18











  • Postfix is installed but runs under its own "postfix" (as well as a bunch of other users like "postdrop").

    – user67289
    Feb 24 '15 at 16:20











  • I'm mainly asking whether some program that I'm not aware of can get this "mail" user's privileges and access the mail I'm going to store in /var/spool/mail.

    – user67289
    Feb 24 '15 at 16:21











  • If you don't know what it's used for, and if it's there, don't mess with it. Create your own folder and use that!

    – SPRBRN
    Feb 24 '15 at 16:32

















Do you have sendmail or postfix installed? I guess the mail user is a standard user on Linux systems. I see it on my local Mint desktop and on a Centos machine.

– SPRBRN
Feb 24 '15 at 16:18





Do you have sendmail or postfix installed? I guess the mail user is a standard user on Linux systems. I see it on my local Mint desktop and on a Centos machine.

– SPRBRN
Feb 24 '15 at 16:18













Postfix is installed but runs under its own "postfix" (as well as a bunch of other users like "postdrop").

– user67289
Feb 24 '15 at 16:20





Postfix is installed but runs under its own "postfix" (as well as a bunch of other users like "postdrop").

– user67289
Feb 24 '15 at 16:20













I'm mainly asking whether some program that I'm not aware of can get this "mail" user's privileges and access the mail I'm going to store in /var/spool/mail.

– user67289
Feb 24 '15 at 16:21





I'm mainly asking whether some program that I'm not aware of can get this "mail" user's privileges and access the mail I'm going to store in /var/spool/mail.

– user67289
Feb 24 '15 at 16:21













If you don't know what it's used for, and if it's there, don't mess with it. Create your own folder and use that!

– SPRBRN
Feb 24 '15 at 16:32





If you don't know what it's used for, and if it's there, don't mess with it. Create your own folder and use that!

– SPRBRN
Feb 24 '15 at 16:32










1 Answer
1






active

oldest

votes


















2














Rule of thumb when when dealing with system administrator user accounts (those that UIDs range from 1-99) should never be touched (unless you know 100% what you are doing). These user accounts tend to be needed for important system functions.



http://www.linfo.org/uid.html




UIDs 1 through 99 are traditionally reserved for special system users
(sometimes called pseudo-users), such as wheel, daemon, lp, operator,
news, mail, etc. These users are administrators who do not need total
root powers, but who perform some administrative tasks and thus need
more privileges than those given to ordinary users.




Sendmail for example, is one such application that uses the mail user if the default options are left intact. The DefaultUser option in Redhat 7 defines the userID as 8 and the groupID as 12. These values match with the mail user in your /etc/passwd file:



mail:x:8:12:mail:/var/spool/mail:/sbin/nologin





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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f186620%2fon-linux-what-is-the-mail-user-account-for%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown
























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Rule of thumb when when dealing with system administrator user accounts (those that UIDs range from 1-99) should never be touched (unless you know 100% what you are doing). These user accounts tend to be needed for important system functions.



    http://www.linfo.org/uid.html




    UIDs 1 through 99 are traditionally reserved for special system users
    (sometimes called pseudo-users), such as wheel, daemon, lp, operator,
    news, mail, etc. These users are administrators who do not need total
    root powers, but who perform some administrative tasks and thus need
    more privileges than those given to ordinary users.




    Sendmail for example, is one such application that uses the mail user if the default options are left intact. The DefaultUser option in Redhat 7 defines the userID as 8 and the groupID as 12. These values match with the mail user in your /etc/passwd file:



    mail:x:8:12:mail:/var/spool/mail:/sbin/nologin





    share|improve this answer




























      2














      Rule of thumb when when dealing with system administrator user accounts (those that UIDs range from 1-99) should never be touched (unless you know 100% what you are doing). These user accounts tend to be needed for important system functions.



      http://www.linfo.org/uid.html




      UIDs 1 through 99 are traditionally reserved for special system users
      (sometimes called pseudo-users), such as wheel, daemon, lp, operator,
      news, mail, etc. These users are administrators who do not need total
      root powers, but who perform some administrative tasks and thus need
      more privileges than those given to ordinary users.




      Sendmail for example, is one such application that uses the mail user if the default options are left intact. The DefaultUser option in Redhat 7 defines the userID as 8 and the groupID as 12. These values match with the mail user in your /etc/passwd file:



      mail:x:8:12:mail:/var/spool/mail:/sbin/nologin





      share|improve this answer


























        2












        2








        2







        Rule of thumb when when dealing with system administrator user accounts (those that UIDs range from 1-99) should never be touched (unless you know 100% what you are doing). These user accounts tend to be needed for important system functions.



        http://www.linfo.org/uid.html




        UIDs 1 through 99 are traditionally reserved for special system users
        (sometimes called pseudo-users), such as wheel, daemon, lp, operator,
        news, mail, etc. These users are administrators who do not need total
        root powers, but who perform some administrative tasks and thus need
        more privileges than those given to ordinary users.




        Sendmail for example, is one such application that uses the mail user if the default options are left intact. The DefaultUser option in Redhat 7 defines the userID as 8 and the groupID as 12. These values match with the mail user in your /etc/passwd file:



        mail:x:8:12:mail:/var/spool/mail:/sbin/nologin





        share|improve this answer













        Rule of thumb when when dealing with system administrator user accounts (those that UIDs range from 1-99) should never be touched (unless you know 100% what you are doing). These user accounts tend to be needed for important system functions.



        http://www.linfo.org/uid.html




        UIDs 1 through 99 are traditionally reserved for special system users
        (sometimes called pseudo-users), such as wheel, daemon, lp, operator,
        news, mail, etc. These users are administrators who do not need total
        root powers, but who perform some administrative tasks and thus need
        more privileges than those given to ordinary users.




        Sendmail for example, is one such application that uses the mail user if the default options are left intact. The DefaultUser option in Redhat 7 defines the userID as 8 and the groupID as 12. These values match with the mail user in your /etc/passwd file:



        mail:x:8:12:mail:/var/spool/mail:/sbin/nologin






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 24 '15 at 17:14









        devnulldevnull

        3,8791129




        3,8791129






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f186620%2fon-linux-what-is-the-mail-user-account-for%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            CARDNET

            Boot-repair Failure: Unable to locate package grub-common:i386

            濃尾地震