[Pkg-shadow-devel] Bug#470059: No Mail vs. Maildirs

Michelle Konzack linux4michelle at freenet.de
Tue Apr 1 17:36:49 UTC 2008


Am 2008-03-09 04:22:59, schrieb jidanni at jidanni.org:
> Package: login
> Version: 1:4.1.0-2
> Severity: minor
> 
> Man page says
>        After a successful login, you will be informed of any system messages
>        and the presence of mail. You may turn off the printing of the system
>        message file, /etc/motd, by creating a zero-length file .hushlogin in
>        your login directory. The mail message will be one of "You have new
>        mail.", "You have mail.", or "No Mail." according to the condition of
>        your mailbox.
> 
> But this assumes people have not graduated to Maildirs.
> So then it will always say No Mail.
> And where it thinks people are putting their mail is not even mentioned.

Not realy right, since it depends on the System-Administrator, the
installed MTA, MDA and ${USER} choice:

----[ '/etc/login.defs' ]-----------------------------------------------
# *REQUIRED*
#   Directory where mailboxes reside, _or_ name of file, relative to the
#   home directory.  If you _do_ define both, MAIL_DIR takes precedence.
#   QMAIL_DIR is for Qmail (or any maildir-compatible MTA, such as Exim or
#   Postfix when suitably configured).
# 
#   Essentially, MAIL_DIR defines the $MAIL environmental variable
#   (for mbox use) by appending the username to MAIL_DIR as defined
#   below.  MAIL_FILE defines the $MAIL environment variable as the
#   fully-qualified filename obtained by prepending the user home
#   directory before $MAIL_FILE, and QMAIL_DIR defines the MAIL
#   environment variable as the fully-qualified directory name
#   obtained by prepending the user home directory before $QMAIL_DIR.
#
# NOTE: This is used to setup your MAIL environment variable, and also
# used by userdel to determine if any mail spools need to be removed when
# removing a user. If you change this, you should also change the
# pam_mail.so module setup in /etc/pam.d/login, which affects the "You
# have mail" message on login, and, in default setup, overrides this setting
# in determining the $MAIL environmental variable.
# 
QMAIL_DIR      Maildir/
# MAIL_DIR       /var/mail
# MAIL_FILE      .mail
------------------------------------------------------------------------

I am using "courier-(mta|imap|mlm)" and it works perfectly if your
INBOX is in the standard location "${HOME}/Maildir/{tmp,new,cur}".

And of course, HOW should "login" know, what the ${USER} use?

I have even in my ~/Maildir/ several mbox'es for special use which
can be easyly configured in "procmail" or "maildrop".

I think, this Bug# should be closed.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20080401/8dc41d2a/attachment.pgp 


More information about the Pkg-shadow-devel mailing list