wrong realm is passed to cyrus-sasl with virtdomains option enabled
Andrey Bulgakov
bulgakov at carone.ru
Wed Aug 2 16:39:24 EDT 2006
Hello everybody.
I didn't find answer on google, mailing list archive, so if it was
discussed earlier, give me a link, please..
I am trying to set up several separate domains on one mail system (Gentoo).
My /etc/imapd.conf:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: mail at test.ru
hashimapspool: yes
allowanonymouslogin: no
allowplaintext: yes
virtdomains: userid
defaultdomain: test.ru
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sql
sasl_sql_hostnames: localhost
sasl_sql_user: ****
sasl_sql_passwd: ****
sasl_sql_database: mail
sasl_sql_select: SELECT user_password FROM exim_users INNER JOIN
exim_domains ON user_domain = domain_id WHERE user_login = '%u' AND
domain_name = '%r'
sasl_log_level: 9
When trying to authenticate as mail at test.ru with right password, it
fails and the following query appear in logs:
Aug 1 03:14:14 mail imap[32287]: sql plugin create statement from
userPassword mail mail
Aug 1 03:14:14 mail imap[32287]: sql plugin doing query SELECT
user_password FROM exim_users INNER JOIN exim_domains ON user_domain =
domain_id WHERE user_login = 'mail' AND domain_name = 'mail';
So hostname but not 'test.ru' is passed to cyrus-sasl.
Why it happens?
--
Best regards,
Andrey Bulgakov
More information about the Info-cyrus
mailing list