Begin to write normal and updated default configuration.

--HG--
rename : rspamd.xml.sample => conf/rspamd-basic.xml.in
This commit is contained in:
Vsevolod Stakhov 2011-07-15 18:56:47 +04:00
parent d56c45424b
commit 08b350777c
2 changed files with 30 additions and 20 deletions

View File

@ -587,7 +587,7 @@ LIST(LENGTH PLUGINSSRC RSPAMD_MODULES_NUM)
CONFIGURE_FILE(config.h.in src/config.h) CONFIGURE_FILE(config.h.in src/config.h)
CONFIGURE_FILE(contrib/exim/local_scan.c.in contrib/exim/local_scan_rspamd.c @ONLY) CONFIGURE_FILE(contrib/exim/local_scan.c.in contrib/exim/local_scan_rspamd.c @ONLY)
CONFIGURE_FILE(rspamd.xml.sample conf/rspamd.xml.sample @ONLY) CONFIGURE_FILE(conf/rspamd-basic.xml.in conf/rspamd.xml.sample @ONLY)
######################### LINK SECTION ############################### ######################### LINK SECTION ###############################

View File

@ -14,11 +14,11 @@
<!-- Maximum size of statistics mapped in memory --> <!-- Maximum size of statistics mapped in memory -->
<statfile_pool_size>250M</statfile_pool_size> <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 is non-utf mode. In utf mode all messages are converted to utf8 (if possible) -->
<raw_mode>yes</raw_mode> <raw_mode>no</raw_mode>
<!-- Check text attachements as ordinary text parts --> <!-- Check text attachements as ordinary text parts -->
<check_attachements>no</check_attachements> <check_attachements>no</check_attachements>
<!-- If a rule has been met several times do not add additional score --> <!-- If a rule has been met several times do not add additional score -->
<one_shot>no</one_shot> <one_shot>yes</one_shot>
<!-- DNS requests global timeout --> <!-- DNS requests global timeout -->
<dns_timeout>1s</dns_timeout> <dns_timeout>1s</dns_timeout>
<!-- DNS retransmits count --> <!-- DNS retransmits count -->
@ -48,11 +48,12 @@
<!-- Metrics section --> <!-- Metrics section -->
<metric> <metric>
<name>default</name> <name>default</name>
<required_score>10.0</required_score>
<required_score>14.0</required_score>
<!-- Sample actions --> <!-- Sample actions -->
<action>reject</action> <action>reject</action>
<action>greylist:5</action> <action>greylist:4</action>
<action>add_header:5</action> <action>add_header:8</action>
<!-- Weights for symbols --> <!-- Weights for symbols -->
@ -235,20 +236,23 @@
<!-- multi.surbl.org lists (more details at http://www.surbl.org) --> <!-- multi.surbl.org lists (more details at http://www.surbl.org) -->
<!-- Phishing and malware sites --> <!-- Phishing and malware sites -->
<symbol weight="5.50" description="Phishing and malware sites">PH_SURBL_MULTI</symbol> <symbol weight="10.50" description="Phishing and malware sites">PH_SURBL_MULTI</symbol>
<!-- Outblaze URI Blacklist --> <!-- Outblaze URI Blacklist -->
<symbol weight="5.50" description="Outblaze URI Blacklist">OB_SURBL_MULTI</symbol> <symbol weight="10.50" description="Outblaze URI Blacklist">OB_SURBL_MULTI</symbol>
<!-- AbuseButler web sites --> <!-- AbuseButler web sites -->
<symbol weight="5.50" description="AbuseButler web sites">AB_SURBL_MULTI</symbol> <symbol weight="10.50" description="AbuseButler web sites">AB_SURBL_MULTI</symbol>
<!-- SpamCop web sites --> <!-- SpamCop web sites -->
<symbol weight="5.50" description="SpamCop web sites">SC_SURBL_MULTI</symbol> <symbol weight="10.50" description="SpamCop web sites">SC_SURBL_MULTI</symbol>
<!-- jwSpamSpy + Prolocation sites --> <!-- jwSpamSpy + Prolocation sites -->
<symbol weight="5.50" description="jwSpamSpy + Prolocation sites">JP_SURBL_MULTI</symbol> <symbol weight="10.50" description="jwSpamSpy + Prolocation sites">JP_SURBL_MULTI</symbol>
<!-- sa-blacklist web sites --> <!-- sa-blacklist web sites -->
<symbol weight="5.50" description="sa-blacklist web sites ">WS_SURBL_MULTI</symbol> <symbol weight="10.50" description="sa-blacklist web sites ">WS_SURBL_MULTI</symbol>
<!-- rambler.ru uribl --> <!-- rambler.ru uribl -->
<symbol weight="9.50" description="rambler.ru uribl">RAMBLER_URIBL</symbol> <symbol weight="12.50" description="rambler.ru uribl">RAMBLER_URIBL</symbol>
<!-- DBL uribl -->
<symbol weight="11.50" description="dbl.spamhaus.org uribl">DBL</symbol>
<!-- rambler.ru emailbl --> <!-- rambler.ru emailbl -->
<symbol weight="9.50" description="rambler.ru emailbl">RAMBLER_EMAILBL</symbol> <symbol weight="9.50" description="rambler.ru emailbl">RAMBLER_EMAILBL</symbol>
@ -302,7 +306,7 @@
<maxfiles>2048</maxfiles> <maxfiles>2048</maxfiles>
<maxcore>0</maxcore> <maxcore>0</maxcore>
<!-- Other params --> <!-- Other params -->
<hashfile>/tmp/fuzzy.db</hashfile> <hashfile>/var/run/rspamd/fuzzy.db</hashfile>
<use_judy>yes</use_judy> <use_judy>yes</use_judy>
</worker> </worker>
<worker> <worker>
@ -359,9 +363,14 @@
<bit_2>SC</bit_2> <bit_2>SC</bit_2>
<suffix_RAMBLER_URIBL>uribl.rambler.ru</suffix_RAMBLER_URIBL> <suffix_RAMBLER_URIBL>uribl.rambler.ru</suffix_RAMBLER_URIBL>
<option name="suffix_%b_SURBL_MULTI">multi.surbl.org</option> <option name="suffix_%b_SURBL_MULTI">multi.surbl.org</option>
<suffix_DBL>dbl.spamhaus.org</suffix_DBL>
<options_DBL>noip</options_DBL>
<!-- Redirector sample setup -->
<!--
<redirector_read_timeout>10s</redirector_read_timeout> <redirector_read_timeout>10s</redirector_read_timeout>
<redirector_connect_timeout>1s</redirector_connect_timeout> <redirector_connect_timeout>1s</redirector_connect_timeout>
<redirector>localhost:8080</redirector> <redirector>localhost:8080</redirector>
-->
</module> </module>
<!-- received_rbl --> <!-- received_rbl -->
@ -419,10 +428,13 @@
<!-- Emails blacklist --> <!-- Emails blacklist -->
<module name="emails"> <module name="emails">
<option name="rule">symbol = RAMBLER_EMAILBL, dnsbl = email-bl.rambler.ru, domain_only = false</option> <rule>symbol = RAMBLER_EMAILBL, dnsbl = email-bl.rambler.ru, domain_only = false</rule>
<!-- </module>
<option name="rule">symbol = R_BAD_EMAIL1, map = file:///tmp/emails.list, domain_only = true</option>
--> <!-- SPF module setup -->
<module name="spf">
<spf_cache_size>2048</spf_cache_size>
<spf_cache_expire>1d</spf_cache_expire>
</module> </module>
@ -477,13 +489,11 @@
<symbol>BAYES_HAM</symbol> <symbol>BAYES_HAM</symbol>
<size>10M</size> <size>10M</size>
<path>/var/run/rspamd/bayes.ham</path> <path>/var/run/rspamd/bayes.ham</path>
<binlog>master</binlog>
</statfile> </statfile>
<statfile> <statfile>
<symbol>BAYES_SPAM</symbol> <symbol>BAYES_SPAM</symbol>
<size>10M</size> <size>10M</size>
<path>/var/run/rspamd/bayes.spam</path> <path>/var/run/rspamd/bayes.spam</path>
<binlog>master</binlog>
</statfile> </statfile>
</classifier> </classifier>