diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -341,13 +341,22 @@ opt_include_dir(struct mu_parseopt *po, struct mu_option *op, } static void -opt_port(struct mu_parseopt *po, struct mu_option *op, - char const *arg) +opt_milter_socket(struct mu_parseopt *po, struct mu_option *op, + char const *arg) { mf_srvcfg_add("default", arg); } static void +opt_callout_socket(struct mu_parseopt *po, struct mu_option *op, + char const *arg) +{ + mf_srvcfg_add("callout", arg); + free(callout_server_url); + callout_server_url = mu_strdup(arg); +} + +static void opt_mtasim(struct mu_parseopt *po, struct mu_option *op, char const *arg) { @@ -552,7 +561,11 @@ static struct mu_option mailfromd_options[] = { mu_c_string, NULL, opt_include_dir }, { "port", 'p', N_("STRING"), MU_OPTION_DEFAULT, N_("set communication socket"), - mu_c_string, NULL, opt_port }, + mu_c_string, NULL, opt_milter_socket }, + { "milter-socket", 0, NULL, MU_OPTION_ALIAS }, + { "callout-socket", 0, N_("STRING"), MU_OPTION_DEFAULT, + N_("set callout socket"), + mu_c_string, NULL, opt_callout_socket }, { "mtasim", 0, NULL, MU_OPTION_IMMEDIATE, N_("run in mtasim compatibility mode"), mu_c_string, NULL, opt_mtasim }, @@ -1127,7 +1140,7 @@ provide_default_milter_server(void) } static void -provide_default_callout_server() +provide_default_callout_server(void) { struct variable *var; |