Hi list, since 0.5 we can't use dovecot's master password feature, because RC truncates the username to the second '@' (user@domain1.com*masteruser@domain2.com)
For now i solved the problem with this patch, if you are interested:
--- rcmail.php 2011-03-31 01:45:11.000000000 +0200 +++ rcmail.php 2011-03-31 01:45:27.000000000 +0200 @@ -694,7 +694,7 @@ $host = rcube_idn_to_ascii($host); if (strpos($username, '@')) { // lowercase domain name
list($local, $domain) = explode('@', $username);
list($local, $domain) = explode('@', $username, 2);
$username = $local . '@' . mb_strtolower($domain);
$username = rcube_idn_to_ascii($username);
}
it would be nice to not creating a user configuration (users table) for dovecot master users.
Best regards.
On 31.03.2011 01:56, Simone Caruso wrote:
--- rcmail.php 2011-03-31 01:45:11.000000000 +0200 +++ rcmail.php 2011-03-31 01:45:27.000000000 +0200 @@ -694,7 +694,7 @@ $host = rcube_idn_to_ascii($host); if (strpos($username, '@')) { // lowercase domain name
list($local, $domain) = explode('@', $username);
list($local, $domain) = explode('@', $username, 2); $username = $local . '@' . mb_strtolower($domain); $username = rcube_idn_to_ascii($username); }
it would be nice to not creating a user configuration (users table) for dovecot master users.
I saw somewhere a plugin for master user logins. Doesn't it handle this properly? Maybe the patch is not needed there?
I made a dovecot master user plugin. If it doesn't work, just let me know and i'll look at it. I havent used it in a while. It may actually not work with 2 '@'s, now that I think about it. Anyways, just let me know.
Get it here: http://roundcube-plugins.googlecode.com/files/dovecot_impersonate-1.0.tgz
Cor
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On 31/03/2011 08:53, Cor Bosman wrote:
I made a dovecot master user plugin. If it doesn't work, just let me know and i'll look at it. I havent used it in a while. It may actually not work with 2 '@'s, now that I think about it. Anyways, just let me know.
Get it here: http://roundcube-plugins.googlecode.com/files/dovecot_impersonate-1.0.tgz
Cor
i didn't know of a dovecot "master user" plugin.. maybe i went too early looking into the code, sorry for the noise!
On 31/03/2011 08:53, Cor Bosman wrote:
I made a dovecot master user plugin. If it doesn't work, just let me know and i'll look at it. I havent used it in a while. It may actually not work with 2 '@'s, now that I think about it. Anyways, just let me know.
Get it here: http://roundcube-plugins.googlecode.com/files/dovecot_impersonate-1.0.tgz
Cor
Ok... i tested it on 0.5.0 with and without the patch submitted before, and it works pretty well :)
Thank u Cor.