LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I make SSH use the MAIL variable set by /etc/login.defs? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-make-ssh-use-the-mail-variable-set-by-etc-login-defs-82213/)

RyanA 08-15-2003 05:36 AM

How do I make SSH use the MAIL variable set by /etc/login.defs?
 
The problem I'm having is when a user logs in with SSH the $MAIL var = /var/mail/user! If I "su - user" MAIL is correctly set to ~user/mail


Next, I edited /etc/login.defs commenting out MAIL_DIR and setting the correct path for QMAIL_DIR & MAIL_FILE

exim is configured to deliver email to: ~user/mail -- I have verified that mail is correctly being delivered to ~user/mail/new

updated login & ssh in /etc/pam.d/ so that can correctly inform users of new mail upon login -- This works as expected

RyanA 08-15-2003 11:03 AM

I finally managed to solve this by adding MAIL=~/mail to /etc/profile ... I'm not sure if that's the best way to solve the problem. mail now gives me the error
Quote:

mail: /home/user/mail/: Is a directory
...which means mail isn't configured to support the Maildir format and I haven't been able to find any information on how to change that through searching. MUTT does work, though!


All times are GMT -5. The time now is 04:21 PM.