Univention Bugzilla – Bug 34059
libsasl failes to initialize if lookup of own hostname failes
Last modified: 2014-06-12 09:19:48 CEST
On UCC clients with dynamic IP a entry for the local hostname is missing in /etc/hosts. This leads to problems when initializing SASL: --- # imtest -s -a user@domain.de mail.domain.de failure: SASL initialization --- Kontact/KMail gives errors like "SASL(0): successful result:" when sending Mails. Some Debian/KDE Bugs i found on this: <https://bugs.kde.org/show_bug.cgi?id=289207> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631127> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636534> As workaround, the "debian style" entry for the local machine seems to work fine: --- eval "$(ucr shell)" ucr set hosts/static/127.0.1.1="${hostname}.${domainname} ${hostname}" ---
Check status with 2.0
Works for me on UCC 2.0: # hostname is not in /etc/hosts -> more /etc/hosts 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters # system can't resolve his own hostname -> ping $(hostname) ping: unknown host coach3 # imtest works -> imtest -s -w univention -a test1@perf.test pmaster.perf.test verify error:num=20:unable to get local issuer certificate verify error:num=27:certificate not trusted verify error:num=21:unable to verify the first certificate TLS connection established: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN SASL-IR] pmaster Cyrus IMAP v2.4.9-Debian-2.4.9-1.27.201308091604 server ready C: A01 AUTHENTICATE PLAIN AHRlc3QxQHBlcmYudGVzdAB1bml2ZW50aW9u S: A01 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE IDLE] Success (tls protection) Authenticated. Security strength factor: 256 . list "" "*" * LIST (\HasChildren) "/" INBOX * LIST (\HasNoChildren) "/" INBOX/Ham * LIST (\HasNoChildren) "/" INBOX/Spam . OK Completed (0.000 secs 4 calls) . logout * BYE LOGOUT received . OK Completed Connection closed.
Confirmed, the original bug from UCC 1.0 / Ubuntu 12.04 is no longer reproducible.
UCC 2.0 has been released: http://docs.univention.de/release-notes-ucc-2.0.html If this error occurs again, please use "Clone This Bug".