Mercurial > masqmail
comparison 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 |
comparison
equal
deleted
inserted
replaced
155:b5ab9cb2f18a | 156:ee2afbf92428 |
---|---|
593 else | 593 else |
594 logwrite(LOG_WARNING, "var '%s' not (yet) known, ignored\n", lval); | 594 logwrite(LOG_WARNING, "var '%s' not (yet) known, ignored\n", lval); |
595 } | 595 } |
596 fclose(in); | 596 fclose(in); |
597 | 597 |
598 if (!conf.host_name) { | |
599 logwrite(LOG_ALERT, "`host_name' MUST be set in masqmail.conf. See man page\n"); | |
600 return FALSE; | |
601 } | |
602 | |
598 if (conf.errmsg_file == NULL) | 603 if (conf.errmsg_file == NULL) |
599 conf.errmsg_file = g_strdup(DATA_DIR "/tpl/failmsg.tpl"); | 604 conf.errmsg_file = g_strdup(DATA_DIR "/tpl/failmsg.tpl"); |
600 if (conf.warnmsg_file == NULL) | 605 if (conf.warnmsg_file == NULL) |
601 conf.warnmsg_file = g_strdup(DATA_DIR "/tpl/warnmsg.tpl"); | 606 conf.warnmsg_file = g_strdup(DATA_DIR "/tpl/warnmsg.tpl"); |
602 | 607 |