Hi gang,
So... I moved away from mbox to the Maildir format courtesy of Sendmail, procmail & Mutt; this setup works like a charm.
However... there's a problem when the MAIL environment variable it set (this defaults to /var/mail/$USER) because this will make Mutt switch to focussing on the mbox again. So... I changed /etc/login.conf (and ran
When I log onto the console... no more MAIL. But... when I log on using SSH... lo and behold: MAIL=/var/mail/peter returns.
I already set PermitUserEnvironment to 'no' in /etc/ssh/sshd_config but even that doesn't stop it. It also doesn't matter if I log on using PuTTY or Windows' own SSH client.. the variable gets set.
Anyone got an idea how to tell SSHd to stop doing this? At least that's my conclusion so far...
(edit)
In the mean time I temporarily resolved this idiocy by adding the following line to ~/.profile:
...but that's obviously not a very satisfying solution as this shouldn't have been set in the first place.
So... I moved away from mbox to the Maildir format courtesy of Sendmail, procmail & Mutt; this setup works like a charm.
However... there's a problem when the MAIL environment variable it set (this defaults to /var/mail/$USER) because this will make Mutt switch to focussing on the mbox again. So... I changed /etc/login.conf (and ran
cap_mkdb
), verified /usr/share/skel and my local shell setups... everything checks out.When I log onto the console... no more MAIL. But... when I log on using SSH... lo and behold: MAIL=/var/mail/peter returns.
I already set PermitUserEnvironment to 'no' in /etc/ssh/sshd_config but even that doesn't stop it. It also doesn't matter if I log on using PuTTY or Windows' own SSH client.. the variable gets set.
Anyone got an idea how to tell SSHd to stop doing this? At least that's my conclusion so far...
(edit)
In the mean time I temporarily resolved this idiocy by adding the following line to ~/.profile:
Code:
if [ ! -z $MAIL ]; then unset MAIL; fi