{"id":3396,"date":"2022-12-20T17:02:33","date_gmt":"2022-12-20T20:02:33","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pam_mail-man8\/"},"modified":"2022-12-20T17:02:33","modified_gmt":"2022-12-20T20:02:33","slug":"pam_mail-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pam_mail-man8\/","title":{"rendered":"PAM_MAIL (man8)"},"content":{"rendered":"<h1 align=\"center\">PAM_MAIL<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#MODULE TYPES PROVIDED\">MODULE TYPES PROVIDED<\/a><br \/> <a href=\"#RETURN VALUES\">RETURN VALUES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_mail \u2212 Inform about available mail<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\"><b>pam_mail.so<\/b> [close] [debug] [dir=<i>maildir<\/i>] [empty] [hash=<i>count<\/i>] [noenv] [nopen] [quiet] [standard]<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The pam_mail PAM module provides the &#8220;you have new mail&#8221; service to the user. It can be plugged into any application that has credential or session hooks. It gives a single message indicating the <i>newness<\/i> of any mail it finds in the user&#8217;s mail folder. This module also sets the PAM environment variable, <b>MAIL<\/b>, to the user&#8217;s mail directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the mail spool file (be it \/var\/mail\/$USER or a pathname given with the <b>dir=<\/b> parameter) is a directory then pam_mail assumes it is in the <i>Maildir<\/i> format.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>close<\/b><\/p>\n<p style=\"margin-left:17%;\">Indicate if the user has any mail also on logout.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>debug<\/b><\/p>\n<p style=\"margin-left:17%;\">Print debug information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>dir=<\/b><i>maildir<\/i><\/p>\n<p style=\"margin-left:17%;\">Look for the user&#8217;s mail in an alternative location defined by maildir\/<login>. The default location for mail is \/var\/mail\/<login>. Note, if the supplied maildir is prefixed by a &#8216;~&#8217;, the directory is interpreted as indicating a file in the user&#8217;s home directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>empty<\/b><\/p>\n<p style=\"margin-left:17%;\">Also print message if user has no mail.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>hash=<\/b><i>count<\/i><\/p>\n<p style=\"margin-left:17%;\">Mail directory hash depth. For example, a <i>hashcount<\/i> of 2 would make the mail file be \/var\/spool\/mail\/u\/s\/user.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>noenv<\/b><\/p>\n<p style=\"margin-left:17%;\">Do not set the <b>MAIL<\/b> environment variable.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nopen<\/b><\/p>\n<p style=\"margin-left:17%;\">Don&#8217;t print any mail information on login. This flag is useful to get the <b>MAIL<\/b> environment variable set, but to not display any information about it.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>quiet<\/b><\/p>\n<p style=\"margin-left:17%;\">Only report when there is new mail.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>standard<\/b><\/p>\n<p style=\"margin-left:17%;\">Old style &#8220;You have&#8230;&#8221; format which doesn&#8217;t show the mail spool being used. This also implies &#8220;empty&#8221;.<\/p>\n<h2>MODULE TYPES PROVIDED <a name=\"MODULE TYPES PROVIDED\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>session<\/b> and <b>auth<\/b> (on establishment and deletion of credentials) module types are provided.<\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_BUF_ERR<\/p>\n<p style=\"margin-left:17%;\">Memory buffer error.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SERVICE_ERR<\/p>\n<p style=\"margin-left:17%;\">Badly formed arguments.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SUCCESS<\/p>\n<p style=\"margin-left:17%;\">Success.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_USER_UNKNOWN<\/p>\n<p style=\"margin-left:17%;\">User not known.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Add the following line to \/etc\/pam.d\/login to indicate that the user has new mail when they login to the system.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">session optional pam_mail.so standard<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pam.conf<\/b>(5), <b>pam.d<\/b>(5), <b>pam<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_mail was written by Andrew G. Morgan <morgan@kernel.org>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pam_mail \u2212 Inform about available mail <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,524],"class_list":["post-3396","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pam_mail"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3396"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3396\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}