kein LOGIN oder PLAIN möglich (cyrus sasl2)
Hallo,
ich verzweifle hier. Seit Tagen versuche ich mich daran, Postfix und Cyrus mit
LDAP unter einen Hut zu bekommen. Leider scheitere ich daran, das ich weder
unter cyrus, noch unter postfix die authorisierungsmethode LOGIN oder PLAIN
zum laufen bekomme.
schaffi@merlin:~$ imtest localhost
S: * OK merlin Cyrus IMAP4 v2.1.9-Debian-10 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE
UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=OTP AUTH=NTLM
AUTH=DIGEST-MD5 AUTH=CRAM-MD5 LISTEXT LIST-SUBSCRIBED ANNOTATEMORE
S: C01 OK Completed
Ich nutze den cyrus und sasl2 backport von hmh. Die Konfigurationsdateien
sehen wiefolgt aus:
merlin:~# cat /etc/default/saslauthd
-------------------------------------
START=yes
MECHANISMS="pam"
-------------------------------------
merlin:~# cat /etc/pam.d/smtp
-------------------------------------
auth sufficient pam_ldap.so
auth required pam_unix.so nullok
account sufficient pam_ldap.so
account required pam_unix.so
-------------------------------------
merlin:~# cat /etc/imapd.conf|grep sasl_
-------------------------------------
#sasl_mech_list: PLAIN
sasl_minimum_layer: 0
#sasl_maximum_layer: 256
sasl_pwcheck_method: saslauthd
sasl_auto_transition: no
--------------------------------------
merlin:~# postconf -n
--------------------------------------
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp:localhost:10025
daemon_directory = /usr/lib/postfix
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailbox_transport = cyrus
message_size_limit = 1024000000
mydestination = merlin.inwg.de, localhost.inwg.de, localhost
myhostname = merlin.inwg.de
mynetworks = 127.0.0.0/8 192.168.21.0/24
myorigin = /etc/mailname
program_directory = /usr/lib/postfix
recipient_delimiter = +
relayhost = smtp.inwg.de
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated
check_relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous, noplaintext
-------------------------------
merlin:~# postconf -m
-------------------------------
static
nis
dbm
regexp
environ
btree
unix
hash
----------------------------
Ich weiss einfach nicht mehr weiter. Die Authentifikation über 'einfachen
text', wie es bei kmail so schoen genannt wird, funktioniert einwandfrei
(jedenfalls bei kmail -> cyrus.).
um mich an postfix zu authentifizieren benötige ich aber entweder den login
oder den plain mechanismus, denn die md5-mechanismen funktionieren afaik nur
mit der sasldb.
Hiiiilffeeeeeeeee!!!!
--
Liebe Grüße, Sven Schaffranneck
( sven@inwg.de - http://www.inwg.de )
( Registered Linux User #281620 @ http://counter.li.org )
He who knows, does not speak. He who speaks, does not know.
-- Lao Tsu
Reply to: