diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) { |