[Dovecot] Fatal: EOF reading environment from master

Magnus Holmgren holmgren at lysator.liu.se
Tue Sep 20 15:40:51 EEST 2005


Lorens skrev:
> On Thu, Sep 08, 2005 at 08:01:28PM -0400, Marcathian Alexander wrote:
> 
>>Hello
>>On 7 sept 2005 I downloaded compiled and installed Dovecot v1.0.alpha1.
> 
> ...
> 
>>dovecot: Sep 08 18:47:33 Error: login: Missing protocol from server name 'imap'
> 
> 
> The config file syntax changed. 1.0 will produce that kind of error when
> run with a 0.99 config file.
> 
> HTH.
> 

I proposed a patch in February that would make "default" the default
server name when no --group option, or one without a slash, is passed to
imap-login or pop3-login. I don't (or didn't) think this has to do with
the config file format. I think the patch is still valid, at least
against the latest Debian source package.

The workaround is thus to add --group=default/imap to the command line.

-- 
Magnus Holmgren
holmgren at lysator.liu.se

--- src/master/login-process.c.orig	2005-02-19 22:24:16.000000000 +0100
+++ src/master/login-process.c	2005-02-19 22:56:00.000000000 +0100
@@ -192,13 +192,14 @@
 		i_error("login: Server name wasn't sent");
 	else {
 		name = t_strndup(buf, len);
-		proto = strchr(buf, '/');
+		proto = strchr(name, '/');
 		if (proto == NULL) {
-			i_error("login: Missing protocol from server name '%s'",
-				name);
-			return FALSE;
+			proto = name;
+			name = "default";
 		}
-		name = t_strdup_until(buf, proto++);
+		else {
+			*proto++ = '\0';
+		}

 		if (strcmp(proto, "imap") == 0)
 			protocol = MAIL_PROTOCOL_IMAP;


More information about the dovecot mailing list