> ----------
> From:         Chris Green[SMTP:[EMAIL PROTECTED]]
> Sent:         Friday, February 05, 1999 2:39 PM
> To:   [EMAIL PROTECTED]
> Subject:      More Maildir configuration questions
> 
> 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)/
> 
Who owns the directory ?  Probably root or alias ?  The easiest solution
would be to create 
a non-root user (like an admin account) and set .qmail-root,
.qmail-postmaster, etc to 
forward the mail to the admin account.

> 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)
> 
qmail will NOT deliver mail to root.  That would be a security hole
(since qmail
would need to setuid to root).

> 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?
> 
Just set it in the ~/.qmail file.  
You could just as easily set it to /var/log/mail/USER/maildir however
you will still 
need to enforce the protections.

> -- 
> Chris Green ([EMAIL PROTECTED])
>   Home: [EMAIL PROTECTED]                 Work: [EMAIL PROTECTED]
>   WWW: http://www.isbd.co.uk/
> 
> Matt Soffen
> Webmaster - http://www.iso-ne.com/
> ==============================================
> Boss    - "My boss says we need some eunuch programmers."
> Dilbert - "I think he means UNIX and I already know UNIX."
> Boss    - "Well, if the company nurse comes by, tell her I said 
>              never mind."
>                                        - Dilbert -
> ==============================================
> 
> 

Reply via email to