Re: about cyrus-imap-2.2 virtdomains
Joerg Delker <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Daniele, thanks for your evaluation and the list of necessary changes. Although, I'm currently not using cyrus 2.2.x myself, I believe this would be a good thing to get alligned with ISPMan. There is currently one major drawback though - backward compatibility! With your changes you are eliminating "uid: user_example_com" completely, which may have a major impact on other parts of ispman I currently can't overview. Besides that I would guess that it will break "native ldap support" (libnss, pam) because of "@" in usernames. Thus, I would suggest finding a way how cyrus 2.2.x can cope with both types of uids being present Unfortunately, I'm currently too busy to test any of this. So, if anybody can shed some more light on this, I will be happy to discuss this further. Joerg Daniele Paolucci wrote: > According with joergd on #ispman@freenode, i post here my modifies to > ispman-1.2 usefull to make cyrus-imap-2.2.x virtdomain working. > This will give cyrus-imap the ability to understand [email protected] logins. > > My modifies to imapd.conf are: > > altnamespace: yes (this is usefull only to me i suppose) > virtdomains: on > > we should make some changes for cyrus transport too: > > in postfix/master.cf : > > yrus unix - n n - - pipe > user=cyrus argv=/usr/local/cyrus/bin/deliver -e -r ${sender} -m > ${extension} ${recipient} > > we must use ${recipient} because cyrus split login between user and domain. > > At this point we must modify ispman. > > /opt/ispman/lib/ISPMan/UserMan.pm : > > -- > sub create_uid { > my $self = shift; > my ( $userId, $domain ) = @_; > # here is the logic to convert userName to user_domain_tld > # If you don't want this behaviour and just wasnt uid uncomment the > next line; > #return $userId; > > # $domain =~ s/\./_/g; > # $userId =~ s/\./_/g; > > # unless ( $userId =~ /$domain$/ ) { > $userId = join "@", ( $userId, $domain ); > # } > return $userId; > } > -- > > /opt/ispman/templates/users.ldif.template : > > #uid: <perl>$r->param("uid")</perl> > > comment out this or u'll have ldap error about duplicate entries. > > About a migration from cyrus-imap 2.1 to 2.2: > I wasn't able to do this because i had some db issues that broke > compatibility, but according with "install-upgrade.html" in cyrus-imap > docs, it should be possible. > In theory at this point u should rename mailboxes. > > I'm testing ispman only for mail, and until now i have no problems. I > have other changes, but i think this shuld be enough to make ispman > working with virtdomains. > Let me know if u need other informations, or i shuld do some specific test. > > I'll be at your disposal cause i'm really interested that all this > stuffs will be implemented in ispman. > > At this point i have the avantage to give users access to sieve, for > server side filters and vacation and i don't need anymore perdition. > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click