aboutsummaryrefslogtreecommitdiffstats
path: root/rspamd.xml.sample
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-22 17:36:34 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-22 17:36:34 +0300
commitcb34e117a397a6d27734cf3564001bfec97ec0ea (patch)
treecca31c7d6dff37904ab2164e761b13c054a65cd7 /rspamd.xml.sample
parent5492467747da01e72fe8b9e80ebee28121c68dc6 (diff)
downloadrspamd-cb34e117a397a6d27734cf3564001bfec97ec0ea.tar.gz
rspamd-cb34e117a397a6d27734cf3564001bfec97ec0ea.zip
* Add options section into config to organize options
* Add one_shot option for avoiding inserting several results from one rule Fix parsing of headers with \t symbol [1] Reported by: Victor Ustugov [1]
Diffstat (limited to 'rspamd.xml.sample')
-rw-r--r--rspamd.xml.sample33
1 files changed, 26 insertions, 7 deletions
diff --git a/rspamd.xml.sample b/rspamd.xml.sample
index 1048da2ca..72fd663f0 100644
--- a/rspamd.xml.sample
+++ b/rspamd.xml.sample
@@ -1,13 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<rspamd>
-<!-- Main section -->
-<tempdir>/tmp</tempdir>
-<pidfile>/var/run/rspamd/rspamd.pid</pidfile>
-<filters>regexp,surbl,chartable,fuzzy_check,spf</filters>
-<statfile_pool_size>262144000</statfile_pool_size>
-<raw_mode>yes</raw_mode>
+<!-- Global section -->
<lua src="@ETC_PREFIX@/rspamd/lua/rspamd.lua" />
-<!-- End of main section -->
+
+<!-- Options -->
+<options>
+ <!-- Temporary directory -->
+ <tempdir>/tmp</tempdir>
+ <!-- Path to pid file -->
+ <pidfile>/var/run/rspamd/rspamd.pid</pidfile>
+ <!-- Turned on C filters -->
+ <filters>regexp,surbl,chartable,fuzzy_check,spf</filters>
+ <!-- Maximum size of statistics mapped in memory -->
+ <statfile_pool_size>250M</statfile_pool_size>
+ <!-- Raw mode is non-utf mode. In utf mode all messages are converted to utf8 (if possible) -->
+ <raw_mode>yes</raw_mode>
+ <!-- Check text attachements as ordinary text parts -->
+ <check_attachements>no</check_attachements>
+ <!-- If a rule has been met several times do not add additional score -->
+ <one_shot>no</one_shot>
+ <!-- DNS requests global timeout -->
+ <dns_timeout>1s</dns_timeout>
+ <!-- DNS retransmits count -->
+ <dns_retransmits>5</dns_retransmits>
+ <!-- File for saving settings of symbols cache -->
+ <cache_file>/var/run/rspamd/symbols.cache</cache_file>
+</options>
+<!-- End of options section -->
<!-- Logging section -->
<logging>