LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-14-2006, 03:46 PM   #1
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
$MAIL not being set correctly


Hello! I'm trying to setup courier and mutt to play nice with /Maildir format. The original problem was that Courier was delivering mail to $HOME/Maildir and mutt was looking for it in /var/mail/$USER. I've worked around this by setting 'spoolfile' to ~/Maildir in .muttrc, but the incorrect $MAIL setting is still a problem, because I get no notification of new mails at login.

I tried changing the setting of MAIL_DIR in /etc/login.defs
per the inline doc, but no matter what I do the $MAIL environment variable is stuck on /var/mail/$USER. Where are other likely places $MAIL is getting set? Thanks in advance.
 
Old 02-14-2006, 03:48 PM   #2
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Whoops, here is my config: Debian Sarge over kernel 2.4.27. Thanks.
 
Old 04-23-2006, 02:21 AM   #3
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Found a bunch of bugs reported against this in the login package. Fix was to append
"dir=~/Maildir/" to the pam_mail.so session line in /etc/pam.d/login and remove "noenv" from same as follows:

session optional pam_mail.so standard dir=~/Maildir/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmin doesn't set things up correctly? pingu Linux - Networking 0 11-24-2005 05:27 AM
crontab doesn't work, but everything is set correctly ttilt Linux - General 10 06-16-2005 06:44 PM
can't get xorg.conf set correctly lnxmacusr Slackware 3 12-29-2004 07:40 PM
How to set standby correctly? csobrero Linux - Hardware 0 11-15-2004 10:44 PM
How to correctly set date/time? Jakerohs Linux - General 5 01-08-2004 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration