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.