On Tue, 2009-01-13 at 12:32 -0500, Timo Sirainen wrote:

> > If you search for the "dovecot: imap-login: read(ssl-parameters.dat)
> > failed: Unexpected EOF" error message in your favourite search engine
> > you will find a few hits which are all rather old though.
> 
> The one problem that wasn't too old happened when running two dovecot
> instances. This was fixed in Dovecot. But I guess you're not running two
> instances?

Nope, just one that is started the default way (/etc/init.d/dovecot
start at startup).

> > > It shouldn't be regenerated at startup as long as the file exists. Do
> > > you have it in /var/lib/dovecot?
> > 
> > No, the default place for it to reside seems to
> > be /var/run/dovecot/login/ssl-parameters.dat (which is probably purged
> > each restart?). The configuration file has no directive as this link
> > (http://markmail.org/message/ymdg3f3minq7asb2) shows: The place seems to
> > only be configurable at ./configure time.
> 
> The file is first created to $prefix/var/lib/dovecot/ssl-parameters.dat.
> From there it is either hard linked or copied to
> base_dir/login/ssl-parameters.dat. It's never deleted from the /var/lib/
> directory. That's the reason it's generated there, so that after reboots
> Dovecot wouldn't always have to regenerate the ssl-parameters.dat.

Ok, i rechecked: I got /var/lib/dovecot/ssl-parameters.dat but it is not
linked to /var/run/dovecot/login/ssl-parameters.dat, it's a completely
different file. And it is broken and has a length of 80Bytes.

I deleted /var/run/dovecot/login/ssl-parameters.dat, shut down dovecot
and ran
"/usr/lib/dovecot/ssl-build-param /var/lib/dovecot/ssl-parameters.dat"
which fixed that file (brought it to 230 bytes). A restart of dovecot
copied that file to /var/run/dovecot/login/ssl-parameters.dat. So the
issue seems to be somewhat fixed though I still don't know why the
bogus /var/lib/dovecot/ssl-parameters.dat was created.

-- 
ICQ #81510866  -  http://the-gay-bar.com  -  jabber ta...@jabber.org
   Occam's Razor: 
       -"Entia non sunt multiplicanda praeter necessitatem."-

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to