GOsa and shared mailbox [SOLVED]

Raphaël 'SurcouF' Bordet surcouf at debianfr.net
Thu Nov 18 11:55:11 EST 2004


Raphaël 'SurcouF' Bordet wrote:

> Hi,
>
>       I'm using GOsa 2.1.3 on a RHE ES 3 with postfix 2.0.16,
> cyrus-imapd 2.2.6 and openldap 2.0.27.
> I've patched php4 with patch[1] wrote by Mario Mineti that implemente
> getacl function to php
> and needed by GOsa to set up mail account for groups, like this
> following ldif described:
>
> # ldapsearch -x -LLL -b 'dc=sopragroup,dc=fra'
> '(&(objectclass=gosaMailAccount)(|(gosaMailAlternateAddress=support at demat.sopragroup.fra)(mail=support at demat.sopragroup.fra)))' 
>
> dn: cn=support,ou=groups,ou=exploitation,dc=sopragroup,dc=fra
> cn: support
> description: Exploitants de la platerforme
> gidNumber: 1004
> memberUid: otrsadm
> memberUid: rbordet
> memberUid: sroby
> mail: support at demat.sopragroup.fra
> gosaMailServer: imap://imap.demat.sopragroup.fra
> gosaMailQuota: 50000
> gosaMailDeliveryMode: [L]
> gosaSharedFolderTarget: share+support
> objectClass: gosaMailAccount
> objectClass: top
> objectClass: posixGroup
>
> Postfix is configure like this:
>    virtual_mailbox_maps = ldap:demat, ldap:shared
>    virtual_alias_maps = ldap:demat, ldap:shared
>
>    demat_server_host = localhost
>    demat_search_base = dc=sopragroup,dc=fra
>    #demat_scope = sub
>    #demat_bind = no
>    demat_query_filter = (&(objectclass=gosaMailAccount)(mail=%s))
>    demat_result_attribute = uid
>
>    shared_server_host = localhost
>    shared_search_base = ou=groups,ou=exploitation,dc=sopragroup,dc=fra
>    #shared_scope = sub
>    #shared_bind = no
>    shared_query_filter =
> (&(objectclass=gosaMailAccount)(|(gosaMailAlternateAddress=%s)(mail=%s)))
>    #shared_result_attribute =
> gosaSharedFolderTarget,gosaMailForwardingAddress
>    shared_result_attribute = gosaSharedFolderTarget
>
> I've tried many options for both cyrus-imapd and postfix to get shared
> folders support work, but I've failed...
>
> /etc/imapd.conf:
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> admins: admin
> sievedir: /var/lib/imap/sieve
> sendmail: /usr/sbin/sendmail
> hashimapspool: true
> sasl_pwcheck_method: saslauthd
> sasl_mech_list: PLAIN
> tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
> tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
> tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
> autocreatequota: 10000
> #createonpost: yes
> createonlogin: yes
> autocreateinboxfolder: Envoyes|Brouillons|Spam|Modeles
> autosubscribeinboxfolder: Envoyes|Brouillons|Spam|Modeles
> newsmaster: admin
> #userprefix: Autres utilisateurs
> altnamespace: no
> #postuser: shared
> #sharedprefix: shared

Using GOsa, I've created a user named "share" and set imapd.conf's 
postuser directive to his name and it's works fine.

dn: uid=share,ou=users,dc=sopragroup,dc=fra
sn: share
givenName: share
uid: share
cn: share share
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: gosaAccount
userPassword:: <secret>
lmPassword: <secret>
ntPassword: <secret>
pwdLastSet: <secret>

Regards,

-- 
Raphaël 'SurcouF' Bordet
http://debianfr.net/ | surcouf at debianfr dot net

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list