masqmail

diff src/conf.c @ 156:ee2afbf92428

require host_name to be set in config file exit otherwise there is no portable way to determine the hostname (actually the hostname that masqmail should use) thus it must be set by the administrator
author meillo@marmaro.de
date Thu, 08 Jul 2010 09:49:05 +0200
parents b5ab9cb2f18a
children 586f001f5bbd
line diff
     1.1 --- a/src/conf.c	Thu Jul 08 09:43:27 2010 +0200
     1.2 +++ b/src/conf.c	Thu Jul 08 09:49:05 2010 +0200
     1.3 @@ -595,6 +595,11 @@
     1.4  	}
     1.5  	fclose(in);
     1.6  
     1.7 +	if (!conf.host_name) {
     1.8 +		logwrite(LOG_ALERT, "`host_name' MUST be set in masqmail.conf. See man page\n");
     1.9 +		return FALSE;
    1.10 +	}
    1.11 +
    1.12  	if (conf.errmsg_file == NULL)
    1.13  		conf.errmsg_file = g_strdup(DATA_DIR "/tpl/failmsg.tpl");
    1.14  	if (conf.warnmsg_file == NULL)