> -----Message d'origine-----
> De : Theodore J. Knab [mailto:[EMAIL PROTECTED]
> Envoye : lundi 7 juillet 2003 16:55
> A : Liste Courier-users
> Cc : Fran?ois Beretti
> Objet : Re: [courier-users] Maildir: no such file or directory
> >I am setting up a mail system with postfix as smtp server and
> courier as pop
> >server
> >I also want to store all the users' data in an ldap directory
> >For the smtp side it's ok, and for the pop side (so,
> courier-pop3d), I can
> >authenticate from my pop client,
> >so the ldap entry is well retrieved, and the LDAP authentication
> works well,
> >but then I got the error : "Maildir: No such file or directory"
>
> When you get an error of "Maildir: No such file or directory"
> courierimap is not finding the Maildir.
>
> I have a similar setup and it works fine with Open LDAP, Courier
> IMAP, and Postfix.
>
> I modifed my ldap config on my test server too look like yours and it
> works with no problem.
>
> Did you restart the auth daemon program after making your changes ?
> /etc/init.d/courier-authdaemon restart
yes I did
>
> The only other thing I can think of is do you have your permissions
> setup ?
>
> testerserver:/etc/courier# courierauthtest tjk
> Authenticated: module authdaemon
> Home directory: /home/1000
> UID/GID: 1000/1001
> AUTHADDR=tjk
> AUTHFULLNAME=Theodore Smith
> testerserver:/etc/courier#
>
> dn: uid=tjk,ou=people,dc=testerserver,dc=org
> cn: Theodore Smith
> uid: tjk
> uidNumber: 1000
> gidNumber: 1001
> mail: [EMAIL PROTECTED]
> mailAlternateAddress: [EMAIL PROTECTED]
> accountStatus: active
> objectClass: qmailuser
> objectClass: couriermailaccount
> objectClass: Person
> objectClass: OrganizationalPerson
> objectClass: inetOrgPerson
> mailQuota: 2400000S
> sn: Smith
> givenName: Theodore
> o: Tester Organization
> physicalDeliveryOfficeName:: MiBDeWJlciBTcGFjZSA=
> employeeNumber:: MTAwMCA=
> telephoneNumber: 410-555-1212
> ou: admin
> title: Real Admin
> homePostalAddress: 1 Unix Way or the Hwy.
> homePhone: 410-555-1212
> createTimestamp: 20030627205549Z
> mailMessageStore: 1000/Maildir
> homeDirectory: 1000
>
> LDAP_SERVER localhost
> LDAP_PORT 389
> LDAP_BASEDN ou=people,dc=testserver, dc=org
> LDAP_BINDDN cn=mailadmin,dc=testserver,dc=org
> LDAP_BINDPW secret
> LDAP_TIMEOUT 5
> LDAP_MAIL mail
> LDAP_FILTER (accountStatus=active)
> LDAP_DOMAIN testserver.org
> LDAP_GLOB_GID vmail
> LDAP_HOMEDIR homeDirectory
> LDAP_MAILROOT /home
> LDAP_FULLNAME cn
> LDAP_CRYPTPW userPassword
> LDAP_UID uidNumber
> LDAP_DEREF never
> LDAP_TLS 0
well... here is my authtest output :
serveur root # /usr/lib/courier-imap/authlib/authtest francois
Authenticated: module authdaemon
Home directory: /data/mail/francois
UID/GID: 5000/5000
AUTHADDR=francois
AUTHFULLNAME=francois
I really don't understand :-(
why this error during pop access ?
is there a way to increase log level of courier pop3d ?
the directories seem to have the right permissions :
serveur root # ls -al /data/mail/
total 2
drwxrwx--- 4 5000 postfix 96 Jul 5 19:58 .
drwxr-xr-x 13 root root 328 Jul 1 16:38 ..
drwx------ 3 5000 5000 72 Jul 5 19:57 estelle
drwx------ 3 5000 5000 72 Jul 5 19:58 francois
LDAP_GLOB_UID 5000
LDAP_GLOB_GID 5000
(same error with "LDAP_GLOB_GID postfix")
I have still the error with drwxrwx--- permissions,
I have been keeping the error while progressly increasing permissions to 777
Francois
>
>
> On Mon, Jul 07, 2003 at 10:57:57AM +0200, Fran?ois Beretti wrote:
> Hello all
>
> I have searched the web for a few days, but in spite of the fact
> that a lot
> of people seem to have had this problem, I still haven't found
> the solution
>
> On my filesystem, all the mails are stored in the directory /data/mail
> in this directory there are a directory for each user
> and in its directory a user has a "Maildir" directory :
> /data/mail
> |
> |--francois/Maildir/
> |
> |--estelle/Maildir/
> |
> ...
>
> My ldap tree looks like :
>
> dc=beretti,dc=org
> |
> |--ou=users
> |
> |--cn=francois
> [EMAIL PROTECTED]
> mailMessageStore=francois/
> ...
>
> finally, my authldaprc file is :
>
> LDAP_SERVER ldap.beretti.org
> LDAP_PORT 389
> LDAP_BASEDN dc=beretti,dc=org
> LDAP_BINDDN cn=postman,ou=admins,dc=beretti,dc=org
> LDAP_BINDPW secret
> LDAP_TIMEOUT 15
> LDAP_AUTHBIND 1
> LDAP_MAIL mail
> LDAP_FILTER (objectClass=inetOrgPerson)
> LDAP_DOMAIN beretti.org
> LDAP_GLOB_UID 5000
> LDAP_GLOB_GID postfix
> LDAP_HOMEDIR mailMessageStore
> LDAP_MAILROOT /data/mail/
> # If not specified, ./Maildir will be used
> #LDAP_MAILDIR mailMessageStore
> # DEFAULTDELIVERY from ${sysconfdir}/courierd
> LDAP_DEFAULTDELIVERY defaultDelivery
> # LDAP_MAILDIRQUOTA quota
> LDAP_FULLNAME cn
> #LDAP_CLEARPW clearPassword
> LDAP_CRYPTPW userPassword
> # LDAP_UID uidNumber
> # LDAP_GID gidNumber
> LDAP_DEREF never
> LDAP_TLS 0
>
> according to the authldaprc, courier should look at
> LDAP_MAILROOT/LDAP_HOMEDIR/Maildir
> and this should be /data/mail/francois/Maildir when I log on as francois
>
> But there surely is an error somewhere...
>
> thanks a lot
>
> Francois
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users