Politics of my site force me to use a common directory for all
mailboxes, I recently instaled qmail in a test system and is working
fine, but I hanven't been able to configure it for using
/var/spool/mail/$USER as the mailbox.
I am using qmail 1.03, in a Linux sistem, distibution Redhat 5.2.
What I have done, unsuccesfully, is edit the file
/etc/profile.d/qmail.sh so it looks like this:
> appath PATH /var/qmail/bin
>
> # make ~/Mailbox(Maildir) the inbox for users and
> # /var/qmail/alias/Mailbox(Maildir) for root
> if [ `id -u` = "0" ]; then
> if grep -q './Mailbox' /var/qmail/defaultdelivery/rc; then
> MAIL="/var/qmail/alias/Mailbox"
> elif grep -q './Maildir/' /var/qmail/defaultdelivery/rc;
then
> MAIL="/var/qmail/alias/Maildir/"
> fi
> else
> if grep -q './Mailbox' /var/qmail/defaultdelivery/rc; then
> # MODIFICATION MADE
> MAIL="/var/spool/mail/$USER"
> # END OF MODIFICATUION
> elif grep -q './Maildir/' /var/qmail/defaultdelivery/rc;
then
> MAIL="$HOME/Maildir/"
> fi
> fi
>
> # Take care of MH
>
> MAILDROP="$MAIL"
>
> export MAIL MAILDROP
That didn't work, then I changed /var/qmail/boot/home so it contains the
line:
> qmail-start /var/spool/mail/$USER splogger qmail
instead of:
> qmail-start ./Mailbox splogger qmail
Didn't work either.
What am I supossed to do, I don't want to install another package.
Thanks for reading this.