проблема следующего характера(( не могу понять такое ощущение что не верно((
[root@localhost lexikon]# cyradm --user mailadmin --server localhost
Login disabled.
cyradm: cannot authenticate to server with as mailadmin
а если же использовать
[root@localhost lexikon]# cyradm --user mailadmin --server localhost --auth login
verify error:num=18:self signed certificate
IMAP Password:
localhost>
то вроде как подключается но это как то странно :/ и я не могу поставить предположим Веб морду работающую на IMAP - ругается при проверке что не может подключиться( такое ощущение что чего то не установлено((
заведен юзер в линуксе mailadmin
он же заведен в sasldb2
/etc/imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: mailadmin
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
/etc/sysconfig/saslauthd
# Directory in which to place saslauthd's listening socket, pid file, and so
# on. This directory must already exist.
SOCKETDIR=/var/run/saslauthd
# Mechanism to use when checking passwords. Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled with the ablity to use.
MECH=pam
# Options sent to the saslauthd. If the MECH is other than "pam" uncomment the next line.
# DAEMONOPTS=--user saslauth
# Additional flags to pass to saslauthd on the command line. See saslauthd(8)
# for the list of accepted flags.
FLAGS=
Логи
Mar 8 02:32:49 localhost perl: No worthy mechs found
Mar 8 02:36:39 localhost perl: No worthy mechs found
Mar 8 02:37:17 localhost saslauthd[24956]: server_exit : master exited: 24956
Mar 8 02:37:19 localhost saslauthd[25245]: detach_tty : master pid is: 25245
Mar 8 02:37:19 localhost saslauthd[25245]: ipc_init : listening on socket: /var/run/saslauthd/mux
Mar 8 02:37:22 localhost perl: No worthy mechs found
Mar 8 02:38:52 localhost saslauthd[25245]: server_exit : master exited: 25245
Mar 8 02:38:52 localhost saslauthd[25270]: detach_tty : master pid is: 25270
Mar 8 02:38:52 localhost saslauthd[25270]: ipc_init : listening on socket: /var/run/saslauthd/mux
Mar 8 02:39:06 localhost perl: No worthy mechs found
не может найти какой то механизм( что за механизм понятия не имею(( 2 день мозг на вынос
OC Fedora 12
в /etc/imapd.conf добавил
allowplaintext: yes
проблему исправило! стало подключатся нормально! но авторизация все равно не работает(( других юзеров
Log
Mar 8 06:53:08 localhost saslauthd[5048]: do_auth : auth failure: [user=admin] [service=imap] [realm=eqline.ru] [mech=pam] [reason=PAM auth error]
[root@localhost ~]# sasldblistusers2
admin@localhost: userPassword
euro@localhost: userPassword
cyrus@localhost: userPassword
[root@localhost ~]#
причем testsaslauthd -u admin -p pass
отвечает
0: NO "authentication failed"в этом то мне кажется и дело(( юзер вроде как есть а его не хочет аутифицировать(( видимо MECH=pam
что надо еще и в система юзера заводить? Оо как то все муторно(( для чего тогда база это не понять(