Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Ramiro Blanco
2011/11/23 Timo Sirainen : > Too tired to test search myself now, but this is what I used to test it > myself: > You've done too much already! > doveadm user '*@domain' > > If that works, then the problem is with doveadm and it needs more patching.. That works just fine. I guess it needs some pa

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Timo Sirainen
On 24.11.2011, at 4.00, Ramiro Blanco wrote: > Now "%d" it's empty, it shows "vd=" instead of "vd=%d": > > It is supposed to parse domain part from input in "doveadm search > *@domain ..", right? Too tired to test search myself now, but this is what I used to test it myself: doveadm user '*@do

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Ramiro Blanco
2011/11/23 Timo Sirainen : > Actually only the debug message was wrong. The expansion should have > worked. Anyway, fixed the debug message: > http://hg.dovecot.org/dovecot-2.1/rev/1fed3c1c166e Still failing: doveadm(root): Error: User listing returned failure doveadm: Error: Failed to iterate thr

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Timo Sirainen
On Wed, 2011-11-23 at 19:08 -0300, Ramiro Blanco wrote: > 2011/11/23 Timo Sirainen : > > > > Does it still show "%d" in the error messages, or is it "" now? > > > It still shows "%d" > > Nov 23 18:42:59 auth-worker(729): Debug: ldap: iterate: > base=vd=%d,dc=domain scope=subtree Actually only the

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Ramiro Blanco
2011/11/23 Timo Sirainen : > > Does it still show "%d" in the error messages, or is it "" now? > It still shows "%d" Nov 23 18:42:59 auth-worker(729): Debug: ldap: iterate: base=vd=%d,dc=domain scope=subtree filter=(&(objectClass=VirtualMailAccount)(accountActive=TRUE)) fields=mail Nov 23 18:42:59

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Timo Sirainen
On Wed, 2011-11-23 at 18:19 -0300, Ramiro Blanco wrote: > 2011/11/23 Timo Sirainen : > > > > hg version of v2.1 now supports this. > > > > Does it need some extra configuration? No. > I've upgraded to hg ver. of 2.1 and still the same error... Does it still show "%d" in the error messages, or

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Ramiro Blanco
2011/11/23 Timo Sirainen : > > hg version of v2.1 now supports this. > Does it need some extra configuration? I've upgraded to hg ver. of 2.1 and still the same error... Thanks for the quick response! -- Ramiro Blanco

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-23 Thread Timo Sirainen
On Wed, 2011-11-23 at 00:56 +0200, Timo Sirainen wrote: > > Hi, I found that doing a wildcard search with doveadm doesn't expand the %d > > global variable when doing a wildcard search like: > > > > Nov 22 20:48:07 auth-worker: Debug: ldap: iterate: base=vd=%d,dc=domain > > scope=subtree > > Iter

Re: [Dovecot] "%d" does not expand to domain on wildcard search

2011-11-22 Thread Timo Sirainen
On 22.11.2011, at 22.52, Ramiro Blanco wrote: > Hi, I found that doing a wildcard search with doveadm doesn't expand the %d > global variable when doing a wildcard search like: > > Nov 22 20:48:07 auth-worker: Debug: ldap: iterate: base=vd=%d,dc=domain > scope=subtree Iteration is supposed to it

[Dovecot] "%d" does not expand to domain on wildcard search

2011-11-22 Thread Ramiro Blanco
Hi, I found that doing a wildcard search with doveadm doesn't expand the %d global variable when doing a wildcard search like: doveadm search *@domain ALL LARGER 1k doveadm(root): Error: User listing returned failure doveadm: Error: Failed to iterate through some users In /var/log/dovecot.log

Re: [Dovecot] %d does not expand to domain

2009-05-20 Thread Timo Sirainen
On Wed, 2009-05-20 at 10:17 -0700, RoyK wrote: > > Timo Sirainen wrote: > > > > On Wed, 2009-05-20 at 08:55 -0700, RoyK wrote: > >> I see the same happen on Ubuntu Linux 8.04LTS, Dovecot 1.0.5. Config is > >> given below. %u is expanded on the password_query, but not with the > >> user_query, acc

Re: [Dovecot] %d does not expand to domain

2009-05-20 Thread RoyK
RoyK wrote: > > These are the two queries being executed > > 181 Query SELECT username as user, password, domain FROM users WHERE > username = 'test' and domain = 'mydomain.com' > 181 Query SELECT 'maildir:/var/spool/dovecot//test' as mail, uid, > gid, domain FROM users WHERE userna

Re: [Dovecot] %d does not expand to domain

2009-05-20 Thread RoyK
Timo Sirainen wrote: > > On Wed, 2009-05-20 at 08:55 -0700, RoyK wrote: >> I see the same happen on Ubuntu Linux 8.04LTS, Dovecot 1.0.5. Config is >> given below. %u is expanded on the password_query, but not with the >> user_query, according to the mysql query log. > > Show your password_query

Re: [Dovecot] %d does not expand to domain

2009-05-20 Thread Timo Sirainen
On Wed, 2009-05-20 at 08:55 -0700, RoyK wrote: > I see the same happen on Ubuntu Linux 8.04LTS, Dovecot 1.0.5. Config is > given below. %u is expanded on the password_query, but not with the > user_query, according to the mysql query log. Show your password_query. signature.asc Description: Thi

Re: [Dovecot] %d does not expand to domain

2009-05-20 Thread RoyK
giuliano wrote: > > Hello, dovecot-1.1.7 on FreeBSD 7.1. > Usernames have dot in them (like uname.example for a user in > example.com). > I see the same happen on Ubuntu Linux 8.04LTS, Dovecot 1.0.5. Config is given below. %u is expanded on the password_query, but not with the user_query, ac

Re: [Dovecot] %d does not expand to domain

2009-04-28 Thread Giuliano Gavazzi
On M 27 Apr, 2009, at 23:23 , Giuliano Gavazzi wrote: For me it's not a big deal, as was trying this only to give a different layout to users' mailboxes. but it would be a big deal if I wanted to create domain specific public mailboxes. In order to allow extra parameters passed by the clien

Re: [Dovecot] %d does not expand to domain

2009-04-27 Thread Giuliano Gavazzi
On M 27 Apr, 2009, at 20:31 , Timo Sirainen wrote: On Mon, 2009-04-27 at 17:31 +0200, Giuliano Gavazzi wrote: and for authentication: username_format: %Ln This drops the domain part entirely, so after processing this %d will return empty. If you don't want it, try to figure out another wa

Re: [Dovecot] %d does not expand to domain

2009-04-27 Thread Timo Sirainen
On Mon, 2009-04-27 at 17:31 +0200, Giuliano Gavazzi wrote: > and for authentication: > >username_format: %Ln This drops the domain part entirely, so after processing this %d will return empty. If you don't want it, try to figure out another way to do this. You didn't say what passdb you're us

[Dovecot] %d does not expand to domain

2009-04-27 Thread Giuliano Gavazzi
Hello, dovecot-1.1.7 on FreeBSD 7.1. Usernames have dot in them (like uname.example for a user in example.com). in dovecot.conf I have: mail_location: maildir:/userhomes/maildirs/%d/%n/Maildir and for authentication: username_format: %Ln In the client, tried with CONE and Mail.app, I p