Package: libpam-modules
Version: 1.0.1-4+b1
Followup-For: Bug #502114

I'm having a similar problem to the OP -- the value of MAIL is not set
in the environment if /etc/pam.d/login is tweaked with dir=<mail-dir>
in the settings for pam_mail:

    dawit...@webserver:~$ echo $MAIL

    dawit...@webserver:~$ cat /etc/pam.d/login
    #
    # The PAM configuration file for the Shadow `login' service
    #
    [snip]
    # Prints the status of the user's mailbox upon succesful login
    # (Replaces the `MAIL_CHECK_ENAB' option from login.defs). 
    #
    # This also defines the MAIL environment variable
    # However, userdel also needs MAIL_DIR and MAIL_FILE variables
    # in /etc/login.defs to make sure that removing a user 
    # also removes the user's mail spool file.
    # See comments in /etc/login.defs
    session    optional   pam_mail.so standard dir=~/Maildir
    [snip]

Bummer.  Workaround is to set a value for MAIL manually, in ~/.bashrc
for example.

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-rc6.081130.webserver.uvesafb (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libpam-modules depends on:
ii  libc6                         2.7-16     GNU C Library: Shared libraries
ii  libdb4.6                      4.6.21-11  Berkeley v4.6 Database Libraries [
ii  libpam0g                      1.0.1-4+b1 Pluggable Authentication Modules l
ii  libselinux1                   2.0.65-5   SELinux shared libraries

libpam-modules recommends no packages.

libpam-modules suggests no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to