Sameer N Ingole wrote:
Hardik Dalwadi wrote:
jay alvarez wrote:
For example, after sending email to
[EMAIL PROTECTED] it created a /home/bani and
/home/bani/Maildir directories... and an ascii file
/var/vmail/bani which resembles the mbox format.
Ya, I know this problem even with me too.
it will create two dir. one in /home/bani/Maildir
and /var/qmail/bani/mbox and deliver the mail in /var/qmail/bani/mbox.
U have default delivery to is mbox i think so that's why mbox is
created.
Now here is a workaround...
You need home to be specified for some other reason.. but the user
actually is not system user.
so in LDAP:
1. specify home directory as /var/vmail
2. specify mailMessageStore as bani (or whatever you want), note its
not absolute path, its relative. So qmail will append whatever is
there in /var/qmail/control/ldapmessagestore
3. deliveryMode as noprogram
--< example ldap attr >--
homeDirectory: /var/vmail
mailMessageStore: bani
You can give direct path here
mailMessageStore:/var/vamail/bani/
This will work, No need to specify any other things or leave it as it is.
this will override all the options.
deliveryMode: noprogram
--< end example ldap attr >--
This means you have to specify
ldapmessagestore in control directory.
so it looks like this
# cat /var/qmail/control/ldapmessagestore
/var/vmail
(This is ofcourse if you will not have any of the qmail users as
system users or you want all mails to be stored in /var/vmail)
Any idea why this is happening?
Ya, because u have qmailuid and qmailgid set to vmail's uid and gid.
Does it have something to do with both homeDirectory: /home/bani and
mailMessageStore: /var/vmail
(Note: bani doesn't have an actual unix account and a
home directory, I just added the homeDirectory in ldap
because posixAccount requires it)
Thanks.. (hang on' we're almost there! :))
Do you know what qmail program is being invoke to
create that virtual home directories? I know that
its
not a separate script because the flag to enable it
is
included in the main qmail Makefile. Perhaps I can
run
it in debugging mode. Or, perhaps that user
priveledge
in which that program is running is not set to
vmail:vmail, which owns the /var/vmail directory
such
that it cannot create any file in it.
Any idea?
Thanks!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
With Cheers,
Hardik Dalwadi.