On Wed, Aug 28, 2002 at 08:44:19AM +0000, hzqbbc wrote:
Hi all:
Is anybody successfully running postfix with ldap and make maildrop be
the VDA(virtual delivery agent, for deliver mail to the virtual user 's
home) , using Maildir ???
I am working for accomplishing this for N hours but not success!!!:-(
my mail system is make up of:
postfix 1.1.11
openldap 2.0.23
maildrop 1.3.9
sqwebmail 3.3.7
Using VirtualDomain & VirtualAccount and NONE unix mail account
exists,All are Virtual!! All work fine except maildrop,it always give me
error like" unable to open mailbox ","tempatery failure,xxxx,0x0B".
It get me mad !!!!:-( THe most "BIG" problem is it complains "
C19BEBAB53: to=<hzq...@redhut.net>, relay=maildrop, delay=3041,
status=deferred (temporary failure. Command output: maildrop: mailbox is
/home/domains/redhut.net/hzqbbc /usr/bin/maildrop: Unable to open mailbox.
)"
And the "mailbox is /home/domains/redhut.net/hzqbbc" message is my littel
modification to deliver.C and verify the homedir is correct or not.Homedir
seems ok, and i have check the permission of maildrop itself, homedir of
user hzqbbc@redhut and all right!!
The following is my result:
[root@mail maildrop]# ls -l /home/domains/redhut.net/hzqbbc
total 4
drwx------ 8 vuser vgroup 4096 Aug 27 20:46 Maildir
This might be your problem right here. See below.
maildir_attr mailbox
# HOMEDIRECTORY_ATTR - LDAP attribute which contains the path to the users
# home directory
homedirectory_attr mailbox
OK...
###########
my sample user's information store in ldap:
#cat user.ldif
# hzq...@redhut.net, redhut.net, Postfix, MailServer, CN
dn: mail=hzq...@redhut.net,vd=redhut.net,o=Postfix,dc=MailServer,dc=CN
objectClass: top
objectClass: MailAccount
accountActive: TRUE
mail: hzq...@redhut.net
mailbox: /home/domains/redhut.net/hzqbbc
Here we go. According to the "ls -l" above, the directory in the
"mailbox" attribute is not a maildir. You should see the directories
cur/ new/ and tmp/ in there, not Maildir/.
Try deleting the directory hzqbbc and running
maildirmake /home/domains/redhut.net/hzqbbc
chown -R vuser:vgroup /home/domains/redhut.net/hzqbbc
That should create a proper maildir for you given your configurations
listed.
Someone correct me if I've gone astray.