Allowing logins like [email protected] into cyrus
Pedro Algarvio <[email protected]> Wed, 31 May 2006 03:12:06 +0100
| Newsgroups | gmane.comp.isp.ispman.devel |
|---|---|
| Message-ID | <[email protected]> |
After fidling with some cyrus options, I was able to log in into cyrus with [email protected] without the need for perdition (yes, I know we must think of perdition as a way to separate mail for several mail servers, still, I'd like the option not to use perdition). ISPMan already creates a [email protected], so part of the job is done. The next part is to instruct saslauthd to pass the realms(add -r to options), this will make saslauthd pass [email protected] and not just username or username_domain_tld. After that, add to /etc/imapd.conf: virtdomains: on Now we get into more trouble because cyrus does not have that mailbox, but, if we create the apropriate mailbox, it will work. cm [email protected] Bellow is the patch to correcly create the mailbox from the console: ------------------------------------------------------------------------------- diff -Naur ispman.createMailbox.sav ispman.createMailbox --- ispman.createMailbox.sav 2006-05-31 01:32:26.000000000 +0100 +++ ispman.createMailbox 2006-05-31 02:14:07.000000000 +0100 @@ -27,8 +27,8 @@ my $str = shift; ( $uid, $domain ) = split( '@', $str ); if ($domain) { - $domain =~ s/\./_/g; - $str = join '_', ( $uid, $domain ); + $domain =~ s/\./\\./g; + $str = join '\@', ( $uid, $domain ); } return $str; } ------------------------------------------------------------------------------- Couldn't get the rest going because I dont know where ISPMan set's the mailbox to username_domain_tld, which should become [email protected], else, it will always fail from the web interface. If I know this part, maybe I can get to the bottom of the rest. P.S.: Thanks derjohn, we'll continue patching/debugging this subject when both of us have had some sleep :) P.S. 2: Oh, and joerg, please, please, please.... ;) -- Pedro Algarvio __ ___ ___ _______ ___ __ | Y .' _| _ .-----.' _| |_ .-----.----.-----. |. | | _| 1___| _ | _| _|__| _ | _| _ | |. | |__| |____ |_____|__| |____|__|_____|__| |___ | |: 1 | |: 1 | |_____| |::.. . | |::.. . | [email protected] `-------' `-------' [email protected] ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642