Simon Barner | 6 May 2003 02:12
Picon
Favicon

Patch to set FQDN in config file

Hi,

here is a patch that allows you to set the FQDN for the message-id generation in
the config file:

fqdn=host.foo.bar

Cheers,
 Simon

--- util.c.orig	Wed Jun 13 19:53:27 2001
+++ util.c	Tue May  6 01:48:01 2003
 <at>  <at>  -523,6 +523,11  <at>  <at> 
     char name[1025];
 #endif

+	/* fqdn is already set (via config file) */
+	if (fqdn != 0) {
+		return;
+	}
+
 #ifdef INET6
     memset(&hints, 0, sizeof(hints));
     hints.ai_family = PF_UNSPEC;
 <at>  <at>  -866,6 +871,9  <at>  <at> 
 		    mysyslog(LOG_ERR, "no servers before viahost");
 		    exit(2);
 		}
+	    } else if (parsestring(l, "fqdn", &svalue)) {
+		/* get fqdn value */
(Continue reading)


Gmane