> I have qmail running on my Linux RedHat 5.2 box now and it successfully
> delivers mail to 'ordinary' users. After a little hassle I have got mutt
> successfully reading from ~/Maildir. However I have a problem and a
> question:-
> The 'problem' is that mail to root, postmaster, etc. is still not working. I
> have set up a Maildir directory in /var/qmail/alias which seems to be the
> place it should arrive (I'm not sure about this) but the mail doesn't arrive.
> In /var/log/maillog I'm getting lots of errors like:-
> Feb 5 19:03:33 server2 qmail: 918241413.728213 delivery 39: deferral:
> Unable_to_chdir_to_maildir._(#4.2.1)/
> So presumably I either haven't got the Maildir for root's mail in the right
> place or the permissions are wrong. Can anyone set me right please. (By the
> way I also have a /root/Maildir but nothing has arrived there either)
Nothing will ever be delivered to ~root/Maildir, because qmail-local will
never run as root.
If you simply touch ~alias/.qmail-root and ~alias/.qmail-postmaster (i.e.
create empty files), mail for root and postmaster will be delivered to
~alias/Maildir/. The error you're getting is probably an indication that
alias's Maildir isn't owned by alias (did you create it as root and forget
to chown it to alias?). You might try:
chown -R alias ~alias/Maildir
It might be more convenient to have mail for root and postmaster delivered
to a regular user (like you). In that case, put &chris in ~alias/.qmail-root
and ~alias/.qmail-postmaster.
> Secondly, the 'question'. Can I change the name and location of a user's
> Maildir or does it *have* to be ~/Maildir? If it can be changed which
> configuration files need changing?
You can use users/assign to have mail delivered anywhere you like. What
exactly did you have in mind?
Chris