aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 9873ed0f..dcc7d432 100644
--- a/src/main.c
+++ b/src/main.c
@@ -82,6 +82,8 @@ mu_stream_t mf_strecho; /* Output stream for 'echo' statements */
static int trace_option = ARG_UNSET;
static mu_list_t trace_modules;
+
+static char *resolv_conf_file;
/* Preprocessor helper function */
static void
@@ -563,6 +565,9 @@ static struct mu_option mailfromd_options[] = {
{ "relayed-domain-file", 0, N_("FILE"), MU_OPTION_DEFAULT,
N_("read relayed domains from FILE"),
mu_c_string, NULL, opt_relayed_domain_file },
+ { "resolv-conf-file", 0, N_("FILE"), MU_OPTION_DEFAULT,
+ N_("read resolver configuration from FILE"),
+ mu_c_string, &resolv_conf_file },
MU_OPTION_GROUP(N_("Preprocessor options")),
{ "preprocessor", 0, N_("COMMAND"), MU_OPTION_DEFAULT,
@@ -1269,7 +1274,9 @@ main(int argc, char **argv)
exit(EX_USAGE);
init_relayed_domains();
-
+ if (resolv_conf_file)
+ dnsbase_file_init(resolv_conf_file);
+
if (trace_option != ARG_UNSET)
do_trace = trace_option;
if (trace_modules) {

Return to:

Send suggestions and report system problems to the System administrator.