aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-05-26 18:54:44 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-05-26 18:54:44 +0400
commit2a5690e7c12ac78c8ba8bd9f6e7d0a60c577201b (patch)
treeafaef5e7bd71e05102901dd5e6ef267a4bdead29 /src/main.c
parentd608ddf90823ba1fb60bed510751fb219f440f0e (diff)
downloadrspamd-2a5690e7c12ac78c8ba8bd9f6e7d0a60c577201b.tar.gz
rspamd-2a5690e7c12ac78c8ba8bd9f6e7d0a60c577201b.zip
* Continue implementing smtp proxy
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 33cc130d3..844a76925 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,6 +27,7 @@
#include "cfg_file.h"
#include "util.h"
#include "lmtp.h"
+#include "smtp.h"
#include "fuzzy_storage.h"
#include "cfg_xml.h"
@@ -355,6 +356,12 @@ fork_worker (struct rspamd_main *rspamd, struct worker_conf *cf)
msg_info ("starting lmtp process %P", getpid ());
start_lmtp_worker (cur);
break;
+ case TYPE_SMTP:
+ setproctitle ("smtp process");
+ pidfile_close (rspamd->pfh);
+ msg_info ("starting smtp process %P", getpid ());
+ start_smtp_worker (cur);
+ break;
case TYPE_FUZZY:
setproctitle ("fuzzy storage");
pidfile_close (rspamd->pfh);
@@ -559,6 +566,8 @@ get_process_type (enum process_type type)
return "controller";
case TYPE_LMTP:
return "lmtp";
+ case TYPE_SMTP:
+ return "smtp";
}
return NULL;