diff options
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r-- | src/cfg_xml.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c index 02f2519f0..18314106b 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -633,6 +633,10 @@ worker_handle_type (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GH wrk->type = TYPE_LMTP; wrk->has_socket = TRUE; } + else if (g_ascii_strcasecmp (data, "smtp") == 0) { + wrk->type = TYPE_SMTP; + wrk->has_socket = TRUE; + } else if (g_ascii_strcasecmp (data, "fuzzy") == 0) { wrk->type = TYPE_FUZZY; wrk->has_socket = FALSE; @@ -1713,6 +1717,9 @@ xml_dump_workers (struct config_file *cfg, FILE *f) case TYPE_LMTP: fprintf (f, " <type>lmtp</type>" EOL); break; + case TYPE_SMTP: + fprintf (f, " <type>smtp</type>" EOL); + break; } escaped_str = g_markup_escape_text (wrk->bind_host, -1); fprintf (f, " <bind_socket>%s</bind_socket>" EOL, escaped_str); |