masqmail

diff src/listen.c @ 378:5781ba87df95

Removed ident. This had been discussed on the mailing list in Oct 2011. Ident is hardly useful in typical setups for masqmail. Probably Oliver had used it in his setup; that would make sense. Now, I know of nobody who needs it.
author markus schnalke <meillo@marmaro.de>
date Sat, 14 Jan 2012 21:36:58 +0100
parents b27f66555ba8
children a2909de1818b
line diff
     1.1 --- a/src/listen.c	Sat Jan 14 18:44:48 2012 +0100
     1.2 +++ b/src/listen.c	Sat Jan 14 21:36:58 2012 +0100
     1.3 @@ -57,18 +57,7 @@
     1.4  	gchar *ident = NULL;
     1.5  
     1.6  	rem_host = g_strdup(inet_ntoa(sock_addr->sin_addr));
     1.7 -#ifdef ENABLE_IDENT
     1.8 -	{
     1.9 -		gchar *id = NULL;
    1.10 -		if ((id = (gchar *) ident_id(sock, 60))) {
    1.11 -			ident = g_strdup(id);
    1.12 -		}
    1.13 -		logwrite(LOG_NOTICE, "connect from host %s, port %hd ident=%s\n", rem_host,
    1.14 -		         ntohs(sock_addr->sin_port), ident ? ident : "(unknown)");
    1.15 -	}
    1.16 -#else
    1.17  	logwrite(LOG_NOTICE, "connect from host %s, port %hd\n", rem_host, ntohs(sock_addr->sin_port));
    1.18 -#endif
    1.19  
    1.20  	/* start child for connection: */
    1.21  	signal(SIGCHLD, sigchld_handler);
    1.22 @@ -84,10 +73,6 @@
    1.23  	} else if (pid < 0) {
    1.24  		logwrite(LOG_WARNING, "could not fork for incoming smtp connection: %s\n", strerror(errno));
    1.25  	}
    1.26 -#ifdef ENABLE_IDENT
    1.27 -	if (ident != NULL)
    1.28 -		g_free(ident);
    1.29 -#endif
    1.30  
    1.31  	close(sock);
    1.32  	close(dup_sock);