LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pam_mail

notifies users of new mail

TLDR

Check for new mail
$ session optional pam_mail.so
copy
Show standard mail path
$ session optional pam_mail.so standard
copy
Custom mail directory
$ session optional pam_mail.so dir=~/Maildir
copy
Quiet on empty
$ session optional pam_mail.so quiet
copy
Suppress new-mail check (login MOTD only)
$ session optional pam_mail.so nopen
copy

SYNOPSIS

pam_mail.so [options]

DESCRIPTION

pam_mail notifies users of new mail. Checks mail spool at login.The module displays mail notifications. Session login feature.

PARAMETERS

dir=PATH

Mail directory (overrides the MAIL environment variable).
standard
Use the standard mail spool location.
close
Also print a notice at session close if new mail has arrived.
empty
Report even when the mailbox is empty.
hash=N
Look in N hashed subdirectories under `dir` (for sites with hashed spools).
nopen
Do not inspect any mailboxes on login (suppresses the status message).
noenv
Do not export the `MAIL` environment variable.
quiet
Only report if there is new mail (no "no mail" message).

CAVEATS

Session module. Mail spool dependent. Optional notification.

HISTORY

pam_mail provides mail notification at login for Unix mail spools.

SEE ALSO

pam(8), mail(1)

Copied to clipboard
Kai