ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] Help: SASL authentication failure: no secret in database
@ 2007-11-24 16:36 Igor Solovyov
  2007-11-24 18:04 ` Igor Solovyov
  0 siblings, 1 reply; 2+ messages in thread
From: Igor Solovyov @ 2007-11-24 16:36 UTC (permalink / raw)
  To: sysadmins

Никак не могу справиться вот с такой проблемой:

# postconf -n | grep smtpd_sasl

smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous

в smtpd.conf прописано:

pwcheck_method: saslauthd
mech_list: LOGIN PLAIN

настройки saslauthd:

MECHANISMS="sasldb pam"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"

таблица sasldb2 лежит в /var/spool/postfix/etc

делаю локально:
testsaslauthd -u имя -p пароль \
-f /var/spool/postfix/var/run/saslauthd/mux
0: OK "Success."

Пытаюсь отправить письмо снаружи:

connect from unknown [217.19.xxx.xxx]
setting up TLS connection from unknown[217.19.xxx.xxx] 
SSL_accept:before/accept initialization
SSL_accept:error in SSLv2/v3 read client hello A
SSL_accept:error in SSLv2/v3 read client hello B
SSL_accept:SSLv3 read client hello
SSL_accept:SSLv3 write server
SSL_accept:SSLv3 write certificate
SSL_accept:SSLv3 write key exchange
SSL_accept:SSLv3 flush
SSL_accept:error in SSLv3 read client certificate
SSL_accept:SSLv3 read client key exchange
SSL_accept:error in SSLv3 read certificate
SSL_accept:SSLv3 read finished A
SSL_accept:SSLv3 write change cipher spec
SSL_accept:SSLv3 write finished
SL_accept:SSLv3 flush data
save session
CFD8360930A25BE45EDE6718E554F8639C3965315DBDA69D990D907B6F446694&s=smtps
to smtpd cache
put smtpd session
id=CFD8360930A25BE45EDE6718E554F8639C3965315DBDA69D990D907B6F446694&s=smtps
[data 127 bytes]
write smtpd TLS cache entry
CFD8360930A25BE45EDE6718E554F8639C3965315DBDA69D990D907B6F446694&s=smtps:
time=1195920768 [data 127 bytes]
TLS connection established from unknown[217.19.xxx.xxx]: TLSv1
with cipher DHE-RSA-AES256-SHA (256/256 bits)
warning: SASL authentication failure: no secret in database
warning: unknown [217.19.xxx.xxx]: SASL CRAM-MD5 authentication failed:
authentication failure
lost connection after AUTH from unknown [217.19.xxx.xxx]
disconnect from unknown [217.19.xxx.xxx]

Не пойму почему "no secret in database"? 
Вроде sasldblistusers2 кажет, что:

имя@мой.домен: userPassword

В общем прошу помощи. :-)


-- 
Best Regars!
Igor Solovyov


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

* Re: [Sysadmins] Help: SASL authentication failure: no secret in database
  2007-11-24 16:36 [Sysadmins] Help: SASL authentication failure: no secret in database Igor Solovyov
@ 2007-11-24 18:04 ` Igor Solovyov
  0 siblings, 0 replies; 2+ messages in thread
From: Igor Solovyov @ 2007-11-24 18:04 UTC (permalink / raw)
  To: sysadmins

Hi!
On Sat, 24 Nov 2007 21:36:48 +0500
Igor Solovyov <gosha@anti.su> wrote:

> Никак не могу справиться вот с такой проблемой:

Уже справился. :-)

> Не пойму почему "no secret in database"? 
> Вроде sasldblistusers2 кажет, что:
> 
> имя@мой.домен: userPassword

Вот в этом проблема и оказалась.
В настроках MUA надо было указывать имя пользователя для smtp
в виде "имя@мой.домен", а не просто "имя". Сразу все заработало.

Прошу прощения за беспокойство. :-)

-- 
Best Regars!
Igor Solovyov


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

end of thread, other threads:[~2007-11-24 18:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-24 16:36 [Sysadmins] Help: SASL authentication failure: no secret in database Igor Solovyov
2007-11-24 18:04 ` Igor Solovyov

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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