ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Postfix + SASL + MySQL как привинтить Cyrus-IMAP
@ 2004-12-23 12:58 Кочетков Владимир
  2004-12-23 14:17 ` Alexei Takaseev
  2004-12-25 14:04 ` Alexandr Rakhmanin
  0 siblings, 2 replies; 10+ messages in thread
From: Кочетков Владимир @ 2004-12-23 12:58 UTC (permalink / raw)
  To: community

Здравствуйте, community !

Никак не могу заставить это чудо работать.
Аутентификацию при отправке (SMTP) заставить работать удалось
Пытаюсь подружить с Cyrus-IMAP.
Логины и пароли лежат в MySQL.

Мастер 2.4

rpm -qa |grep postfix
postfix-mysql-2.0.20-alt1.3
postfix-control-1.2-alt1
postfix-2.0.20-alt1.3

rpm -qa |grep sasl
libsasl2-plugin-sql-2.1.19-alt1
libsasl2-2.1.19-alt1
cyrus-sasl2-2.1.19-alt1

rpm -qa |grep cyrus-imapd
cyrus-imapd-2.2.10-alt1

   /usr/lib/sasl2/smtpd.conf
pwcheck_metod: auxprop
allowplaintext: yes
auxprop_plugin: sql
sql_engine: mysql
sql_user: postfix
sql_passwd: postfix
sql_hostnames: 127.0.0.1
sql_database: mail
sql_statement: select passwd from users where email = '%u@%r' and enabled = '1'
sql_verbose: no
mech_list: PLAIN LOGIN

/etc/imapd.conf
admin: cyrus
allowpop: 1
allowplaintext: 1
annotation_db: skiplist
autocreatequota: 10000
configdirectory: /var/lib/imap
defaultacl: cyrus lrswipcda
default domain: mydomain.ru
dublicate_db: derkeley-nosync
dublicatesuppression: 0
hashimapspool: 1
idlesocket: /var/lib/imap/socket/idle
imapidresponse: 0
lmtp_downcase_rcpt: 1
lmtp_over_quota_perm_failure: yes
logtimestamps: yes
mboxlist_db: skiplist
partition-default: /var/spool/imap
poptimeout: 5
postmaster: postmaster
quotawarm: 95
reject8bit: 0
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sql
sasl_sql_engine: mysql
sasl_mech_list: LOGIN PLAIN
sasl_sql_user: postfix
sasl_sql_passwd: postfix
sasl_sql_database: mail
sasl_sql_hostnames: 127.0.0.1
sasl_sql_select: select passwd from users where email = lower('%u@%r') and enabled = '1'
sasl_log_level: 255
seenstate_db: skiplist
sendmail: /usr/sbin/sendmail
servername: mydomain.ru
sievedir: /var/lib/imap/sieve
subscription_db: flat
username_tolower: 1


telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to 127.0.0.1/
Escape character is '^]'.
+OK mydomain.ru Cyrus POP3 v2.2.10 server ready
1062446363.1103804559@mydomain.ru
user test
+OK Name is a valid mailbox
pass test
-ERR [AUTH] Invalid login
Connection closed by foreign host

При это в логах /var/log/auth/all вижу

 pop3[19850]: could not find auxprop plugin, was searching for 'sql'

Но я так понимаю используется тот же модуль авторизации что и в случае
с SMTP. Или я не прав ?

Подскажите где искать.

-- 
С уважением,
 Кочетков Владимир                      mailto:kvn@toltc.samen.elektra.ru
 Тольяттинские тепловые сети




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-12-30  8:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-23 12:58 [Comm] Postfix + SASL + MySQL как привинтить Cyrus-IMAP Кочетков Владимир
2004-12-23 14:17 ` Alexei Takaseev
2004-12-24  5:01   ` Re[2]: " Кочетков Владимир
2004-12-28 11:28     ` Alexei Takaseev
2004-12-29 10:48       ` Re[4]: " Кочетков Владимир
2004-12-29 11:26         ` Alexei Takaseev
2004-12-30  7:13           ` Re[6]: " Кочетков Владимир
2004-12-30  8:19             ` Re[7]: " Кочетков Владимир
2004-12-25 14:04 ` Alexandr Rakhmanin
2004-12-28  5:06   ` Re[2]: " Кочетков Владимир

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