about cyrus-imap-2.2 virtdomains

Daniele Paolucci <[email protected]>
Newsgroups gmane.comp.isp.ispman.devel
Message-ID <[email protected]>
According with joergd on #[email protected], 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.

Greets.








-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.