aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/smtp.c')
-rw-r--r--src/smtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/smtp.c b/src/smtp.c
index c5abf5eec..a6a1f901c 100644
--- a/src/smtp.c
+++ b/src/smtp.c
@@ -1058,6 +1058,9 @@ start_smtp_worker (struct rspamd_worker *worker)
/* Maps events */
start_map_watch ();
+ /* Set umask */
+ umask (S_IWGRP | S_IWOTH | S_IROTH | S_IRGRP);
+
event_loop (0);
close_log ();