[exim] Can not create / delete maildirs directories

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Charlie Elgholm
Date:  
À: exim-users
Anciens-sujets: Re: [exim] exim cygwin and dsearch (kind of long)
Sujet: [exim] Can not create / delete maildirs directories
Hello!

This is probably more a Unix/Linux question than an exim question, but since
many of you might have had the same problem / configuration I'll ask it
here.

I use exim (together with clam and spamassassin) and it works just fine.
I use the "create_directory" config option to create the maildir file for
a user if he/she(/it) doesn't already exists.. But here's the catch:

The Courier-POP3 server ofcourse fails when logging on the user if the users
maildir-directory doesn't already exists (-Err: Dir not found).

This means I must do this:
1. When creating a new user, send a "test-email" to that user and let exim
automagically create the necessary maildir-directory.
2. When creating a new user, also create the maildir-directory.

Here's the problem: I'm "system()-calling" out from an Oracle database to
write the virtual-users tables and all other configuration files. These
files are chmod 744 so that the exim user / courier user may read the files.
But if I create the maildir directories as the Oracle-user its ownership
becomes "oracle:dba" and I can't do a "chown exim:mail" on the directories.
Why?? The oracle user is a member of the mail group (in /etc/group) and the
exim user is a member of the dba group.

Is there any other way for me to create / delete this directories, which are
to be owned by exim:mail as the user oracle:dba??

/Charlie

PS. I've tried messing around with the setuid-bit flag in a shell-script but
it doesn't seem to create the directories as exim:mail either... I'm lost.