Univention Bugzilla – Bug 38811
Errors during dovercot listener init
Last modified: 2015-07-09 18:15:40 CEST
These error messages have been found in /var/log/univention/listener.log: 01.07.15 14:49:03.931 LISTENER ( WARN ) : initializing module dovecot-shared-folder 01.07.15 14:49:03.990 LISTENER ( WARN ) : finished initializing module dovecot-shared-folder 01.07.15 14:49:03.990 LISTENER ( WARN ) : initializing module dovecot Sieve/IMAP Password: Authentication refused by server : "Authentication failed." Sieve/IMAP Password: Authentication refused by server : "Authentication failed." 01.07.15 14:49:58.233 LISTENER ( PROCESS ) : dovecot: Added mail account ''. Sieve/IMAP Password: Authentication refused by server : "Authentication failed." Sieve/IMAP Password: Authentication refused by server : "Authentication failed." 01.07.15 14:50:25.232 LISTENER ( PROCESS ) : dovecot: Added mail account ''. Sieve/IMAP Password: Authentication refused by server : "Authentication failed." Sieve/IMAP Password: Authentication refused by server : "Authentication failed." 01.07.15 14:50:59.371 LISTENER ( PROCESS ) : dovecot: Added mail account ''. 01.07.15 14:50:59.372 LISTENER ( WARN ) : finished initializing module dovecot Sieve/IMAP Password: Sieve/IMAP Password: 01.07.15 14:52:23.432 LISTENER ( PROCESS ) : dovecot: Added mail account 'mail1@nstx.local'. Sieve/IMAP Password: Sieve/IMAP Password:
This was fixed by changing two things: * waiting for ssl-parameters generation before restarting listener in postinst: 61648 & 61651 * ignoring users without mail address during listener init: 61663
univention-mail-dovecot/debian/univention-mail-dovecot.postinst: +if [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; then + echo -n "Waiting for Dovecot ssl-parameters generation (this can take a long time)." + while [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; do + echo -n "." + sleep 1 + done +echo → please add a timeout; otherwise if the generation failed and the file is not removed, the installation process will never end. → how long does the regeneration take on low-entropy system? Is 120 seconds as timeout enough? (In reply to Daniel Tröder from comment #1) > * ignoring users without mail address during listener init: 61663 → OK, this fixed the previously reported error messages
(In reply to Sönke Schwardt-Krummrich from comment #2) > univention-mail-dovecot/debian/univention-mail-dovecot.postinst: > +if [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; then > + echo -n "Waiting for Dovecot ssl-parameters generation (this can > take a long time)." > + while [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; do > + echo -n "." > + sleep 1 > + done > +echo > → please add a timeout; otherwise if the generation failed and the file is > not removed, the installation process will never end. A timeout of 180s was added to the loop in revision 61834. > → how long does the regeneration take on low-entropy system? > Is 120 seconds as timeout enough? The process is single-threaded. The longest time I have seen was in a VM of a 2 GHz Opteron with 2:30 min.
(In reply to Daniel Tröder from comment #3) > A timeout of 180s was added to the loop in revision 61834. → OK > > → how long does the regeneration take on low-entropy system? > > Is 120 seconds as timeout enough? > The process is single-threaded. The longest time I have seen was in a VM of > a 2 GHz Opteron with 2:30 min. VM on spoka took 109 seconds. → VERIFIED
<http://errata.univention.de/ucs/4.0/237.html>