ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] cyrus-imapd+sasl+mysql
@ 2005-06-20 10:44 Mike Plugnikov
  0 siblings, 0 replies; only message in thread
From: Mike Plugnikov @ 2005-06-20 10:44 UTC (permalink / raw)
  To: community

Приветствую
Постфикс и сасл побеждены - пересборкой
осталось решить одну проблему поддержки виртуальных доменов в cyrus-imapd
В /etc/imapd.conf стоит:
---------------
admins: cyrus
virtdomains: userid
allowapop: 1
allowplaintext: 1
annotation_db: skiplist
createonpost: 1
configdirectory: /var/lib/imap
defaultdomain: domain.ru
duplicate_db: berkeley-nosync
duplicatesuppression: 0
hashimapspool: 1
sasl_option: 1
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sql
sasl_sql_user: root
sasl_sql_passwd: qwe123
sasl_sql_database: mail
sasl_sql_select: SELECT password FROM user WHERE username='%u@%r'
sasl_sql_verbose: yes
sasl_sql_engine: mysql
sasl_mech_list: plain login
----------------
Так вот, клиенте я указываю в качестве имени аккаунта: mike@domain.ru
Конекчюсь, а в базу идёт запрос вида:
--------
SELECT password FROM user WHERE username='mike@pinky.staff.utc.stankin.ru'
-------
Где pinky.staff.utc.stankin.ru это имя моей моей машины в DNS.
Т.е. он не обращает внимания на то @domain.ru, а подставляет IP
В доке написано, что userid параметр как раз и позволяет разрешить данную 
проблему - но не работает. 
У кого оно работает????

----
<AMike[HOME]> AMorozov, hiddenman, в конце концов, вы уже должны были 
привыкнуть к ключам, ведь вы ps запускаете не со срокой параметров вида "ps 
все пользоватеские процессы показать с со строкой параметров"
<AMorozov> AMike[HOME]: я не пускаю PS, я нажимаю С-Escape ;-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-20 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-20 10:44 [Comm] cyrus-imapd+sasl+mysql Mike Plugnikov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git