aboutsummaryrefslogtreecommitdiffstats
path: root/rspamd.conf.sample
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-17 19:31:48 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-17 19:31:48 +0400
commitbca226772e9747a4587866a50122d4a8f7973b26 (patch)
treeaae459617c9b3a7a82dd0b9e2a8b03be11e3ff52 /rspamd.conf.sample
parent453ecf68e3b51941944dbc3b1dece11342be3810 (diff)
downloadrspamd-bca226772e9747a4587866a50122d4a8f7973b26.tar.gz
rspamd-bca226772e9747a4587866a50122d4a8f7973b26.zip
* Introduce new system of workers spawning and configuring, now rspamd can be easily extended by new types of wrokers
* Rework config system and avoid from using queue (3) lists * Upgrade version to 0.2.0 as config format is now incompatible with older one
Diffstat (limited to 'rspamd.conf.sample')
-rw-r--r--rspamd.conf.sample40
1 files changed, 25 insertions, 15 deletions
diff --git a/rspamd.conf.sample b/rspamd.conf.sample
index 2b70cbd7c..42cf9d2a5 100644
--- a/rspamd.conf.sample
+++ b/rspamd.conf.sample
@@ -7,18 +7,28 @@
# Default: pidfile = /var/run/rspamd.pid
pidfile = "./rspamd.pid";
-# Number of workers to process connections
-# Default: 1
-workers = 1;
-# Socket for accepting mail to filter, can be unix socket if begin with '/'
-# (bind_socket=/var/run/rspamd.sock for example)
-bind_socket = localhost:11333;
+worker {
+ type = "normal";
+
+ # Number of workers to process connections
+ # Default: number of processors in system
+ count = 1;
+
+ # Socket for accepting mail to filter, can be unix socket if begin with '/'
+ # (bind_socket=/var/run/rspamd.sock for example)
+ bind_socket = localhost:11333;
+};
+
# Settings for controller interface
-control {
+worker {
+ type = "controller";
+
# Bind socket for control interface
bind_socket = localhost:11334;
+
+ count = 1;
# Password for privilleged commands
password = "q1";
};
@@ -77,29 +87,29 @@ factors {
};
# Options for lmtp worker
-lmtp {
- enabled = yes;
+worker {
+ type = "lmtp";
# Bind socket for lmtp interface
bind_socket = localhost:11335;
# Metric that is considered as main. If we have spam result on
# this metric, lmtp delivery would be failed
metric = "default";
# Number of lmtp workers
- workers = 1;
+ count = 1;
};
-delivery {
- enabled = yes;
+#worker {
+# type = "delivery";
# Path to delivery agent, %f is expanded as mail from address and %r
# is expanded as recipient address
# Expample: agent = "/usr/local/bin/procmail -f %f -d %r"
- agent = "/dev/null";
+# agent = "/dev/null";
# Bind socket for lmtp interface
# Example: bind_socket = localhost:25
# Whether we should use lmtp for MTA delivery
- lmtp = no;
-};
+# lmtp = no;
+#};
# SURBL module params, note that single quotes are mandatory here
.module 'surbl' {