wrong realm is passed to cyrus-sasl with virtdomains option enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx
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@xxxxxxx 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
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux