undergra wrote:
> Hi, I'm using postfix-2.0.6-8 on my SuSE 8.2 with
> courier-imap-ldap-2.1.2-2 and courier-imap-2.1.2-2.
>
> All works correctly but i have a problem with Maildir
> permissions because when i send an e-mail and connect
> to pop3 i receive this message:
>
> -ERR Maildir: Permission denied
> Connection closed by foreign host.
>
> My perms:
>
> drwx------    5 joanr    informatica9      120 Nov 19 15:12 Maildir
> drwx------    2 joanr    informatica9       48 Nov 19 15:12 cur
> drwx------    2 joanr    informatica9       96 Nov 19 15:12 new
> drwx------    2 joanr    informatica9       48 Nov 19 15:12 tmp
>
> -rwx------    1 joanr    informatica9      491 Nov 19 15:12
> 1069251165.V802I7fde
> .mail
>
>
> # telnet 127.0.0.1 110
> Escape character is '^]'.
> +OK Hello there.
> user joanr
> +OK Password required.
> pass password
> -ERR Maildir: Permission denied
> Connection closed by foreign host.
>
>
> If i do a "chown postfix -R *" on Maildir directory all works
> correctly.
>
> # cd Maildir
> # chown -R postfix *
> # telnet 127.0.0.1 110
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> +OK Hello there.
> user joanr
> +OK Password required.
> pass password
> +OK logged in.
> list
> +OK POP3 clients that break here, they violate STD53.
> 1 507
>
>
> What are the correct permissions on Maildir ?

it needs to be owned by the uid/gid in your auth record

>
> This problem only occurs when i use a LDAP user but if i use
> a system user (with identical permissions -700-) i don't have this
> problem
>
> my authldaprc:
>
> LDAP_SERVER             IP
> LDAP_PORT               389
> LDAP_BASEDN             o=organization
> LDAP_AUTHBIND           1
> LDAP_TIMEOUT            5
> LDAP_MAIL               mail
> LDAP_GLOB_GID           postfix
> LDAP_GLOB_UID           postfix
> LDAP_HOMEDIR            homeDirectory
> LDAP_FULLNAME           cn
> LDAP_DEREF              never
> LDAP_TLS                0
>

I am not familer with ldap, but the
LDAP_GLOB_GID           postfix
LDAP_GLOB_UID           postfix
seems to be a giveaway here, unless you specifiy the uid/gid in the users
record it looks like this is a default?

> # id postfix
> uid=51(postfix) gid=51(postfix) groups=51(postfix)
>
> anyone help me please?
>
> thanks!
>
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to