Hi all. When my friend set up some gateway/proxy/mailserver/whateverelse, he found little strange thing in script file qmail.sh located @ /etc/profile.d/ in his system (and other ones too, as we've seen later). SNIP if grep -q './Mailbox' /var/qmail/defaultdelivery/rc; then MAIL="$HOME/Mailbox" elif grep -q './Maildir/' /var/qmail/defaultdelivery/rc ; then MAIL="$HOME/Maildir/" SNIP Note that the grep with -q flag will take quietly the first Mailbox string in the file (if there exists one), even if this is in commented line (whatever the comment symbol is, std is '#'). So when you have /var/qmail/defaultdelivery/rc with this contents: SNIP # Using qmail-local to deliver messages to ~/Mailbox by default. ./Maildir/ SNIP grep will match the string '~/Mailbox' in the first (commented) line. (The first line is relict of some std installation...) Probably regexp '^[^#].*/Mailbox' or filtering comments should fix this? Regards, dond