On 8/16/2010 11:26 AM, Timo Sirainen wrote:
On Mon, 2010-08-16 at 11:17 -0700, Marc Perkel wrote:
Odd - wonder what I'm doing wrong then? My result:
Aug 16 10:44:43 auth: Debug: sql(support@junkemailfilter.com,127.0.0.1): query: SELECT user_name, domain_name, password FROM users WHERE user_name = 'support' AND domain_name = 'junkemailfilter.com' AND owns_domain='1' AND 'junkemailfilter.com'='' This is from passdb { master = yes } passdb? How are you logging in? I used auth_master_user_separator=* and:
a login tss@dovecot.org*master@dovecot.org pass b login tss@foobar.org*master@dovecot.org pass
auth_master_user_separator = * passdb { driver = sql args = /etc/dovecot/dovecot-domain-owner-sql.conf master = yes pass = yes }
I'm logging in leslie@junkemailfilter.com*support@junkemailfilter.com
But the %{login_domain} evaluates to an empty string as you can see from the results of the debug.
Aug 16 10:44:43 auth: Debug: sql(support@junkemailfilter.com,127.0.0.1): query: SELECT user_name, domain_name, password FROM users WHERE user_name = 'support' AND domain_name = 'junkemailfilter.com' AND owns_domain='1' AND*'junkemailfilter.com'=''*