From: Vsevolod Stakhov Date: Fri, 15 Jul 2011 14:56:47 +0000 (+0400) Subject: Begin to write normal and updated default configuration. X-Git-Tag: 0.4.0~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=08b350777c6b1d652cfa10b110f4a22a39318cd2;p=rspamd.git Begin to write normal and updated default configuration. --HG-- rename : rspamd.xml.sample => conf/rspamd-basic.xml.in --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cffe6953..5c59cf70e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -587,7 +587,7 @@ LIST(LENGTH PLUGINSSRC RSPAMD_MODULES_NUM) 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(rspamd.xml.sample conf/rspamd.xml.sample @ONLY) +CONFIGURE_FILE(conf/rspamd-basic.xml.in conf/rspamd.xml.sample @ONLY) ######################### LINK SECTION ############################### diff --git a/conf/rspamd-basic.xml.in b/conf/rspamd-basic.xml.in new file mode 100644 index 000000000..3d7ba65be --- /dev/null +++ b/conf/rspamd-basic.xml.in @@ -0,0 +1,508 @@ + + + + + + + + + /tmp + + /var/run/rspamd/rspamd.pid + + regexp,surbl,chartable,fuzzy_check,spf + + 250M + + no + + no + + yes + + 1s + + 5 + + /var/run/rspamd/symbols.cache + + + + + + info + yes + console + + + + + + + + + default + + 14.0 + + reject + greylist:4 + add_header:8 + + + + + MISSING_SUBJECT + + FORGED_OUTLOOK_TAGS + + FORGED_SENDER + + SUSPICIOUS_RECIPS + + FAKE_REPLY_C + + MIME_HTML_ONLY + + FORGED_MSGID_YAHOO + + FORGED_MUA_THEBAT_BOUN + + R_MISSING_CHARSET + + RCVD_DOUBLE_IP_SPAM + + FORGED_OUTLOOK_HTML + + R_UNDISC_RCPT + + R_WHITE_ON_WHITE + + HTML_SHORT_LINK_IMG_2 + + FORGED_MUA_OUTLOOK + + FORGED_MUA_OUTLOOK_MAILLIST + + + SUSPICIOUS_BOUNDARY + + SUSPICIOUS_BOUNDARY2 + + SUSPICIOUS_BOUNDARY3 + + SUSPICIOUS_BOUNDARY4 + + + FORGED_MUA_THEBAT_MSGID + + FORGED_MUA_THEBAT_MSGID_UNKNOWN + + + FORGED_MUA_KMAIL_MSGID + + FORGED_MUA_KMAIL_MSGID_UNKNOWN + + + FORGED_MUA_OPERA_MSGID + + SUSPICIOUS_OPERA_10W_MSGID + + + FORGED_MUA_MOZILLA_MAIL_MSGID + + FORGED_MUA_MOZILLA_MAIL_MSGID_UNKNOWN + + FORGED_MUA_THUNDERBIRD_MSGID + + FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN + + FORGED_MUA_SEAMONKEY_MSGID + + FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN + + + FM_FAKE_HELO_VERIZON + + REPTO_QUOTE_YAHOO + + MISSING_MIMEOLE + + MISSING_TO + + + FROM_EXCESS_BASE64 + + FROM_EXCESS_QP + + TO_EXCESS_BASE64 + + TO_EXCESS_QP + + REPLYTO_EXCESS_BASE64 + + REPLYTO_EXCESS_QP + + CC_EXCESS_BASE64 + + CC_EXCESS_QP + + + R_MIXED_CHARSET + + SORTED_RECIPS + + R_RCVD_SPAMBOTS + + R_TO_SEEMS_AUTO + + SUBJECT_NEEDS_ENCODING + + TRACKER_ID + + R_NO_SPACE_IN_FROM + + R_SAJDING + + R_BAD_CTE_7BIT + + R_FLASH_REDIR_IMGSHACK + + INVALID_MSGID + + MISSING_MID + + FORGED_RECIPIENTS + + FORGED_RECIPIENTS_MAILLIST + + RATWARE_MS_HASH + + STOX_REPLY_TYPE + + R_IP_PBL + + ONCE_RECEIVED + + ONCE_RECEIVED_STRICT + + RECEIVED_RBL + + R_PARTS_DIFFER + + MIME_HEADER_CTYPE_ONLY + + R_EMPTY_IMAGE + + + DRUGS_MANYKINDS + + DRUGS_ANXIETY + DRUGS_MUSCLE + DRUGS_ANXIETY_EREC + DRUGS_DIET + DRUGS_ERECTILE + + + ADVANCE_FEE_2 + ADVANCE_FEE_3 + + + R_LOTTO + + + BAYES_SPAM + BAYES_HAM + + + R_FUZZY + R_FUZZY1 + R_FUZZY2 + R_FUZZY3 + + + R_SPF_FAIL + R_SPF_SOFTFAIL + R_SPF_ALLOW + + + MAILLIST + + + + PH_SURBL_MULTI + + OB_SURBL_MULTI + + AB_SURBL_MULTI + + SC_SURBL_MULTI + + JP_SURBL_MULTI + + WS_SURBL_MULTI + + + RAMBLER_URIBL + + + DBL + + + RAMBLER_EMAILBL + + + PHISHING + + + HEADER_FROM_DELIMITER_TAB + HEADER_TO_DELIMITER_TAB + HEADER_CC_DELIMITER_TAB + HEADER_REPLYTO_DELIMITER_TAB + HEADER_DATE_DELIMITER_TAB + + + HEADER_FROM_EMPTY_DELIMITER + HEADER_TO_EMPTY_DELIMITER + HEADER_CC_EMPTY_DELIMITER + HEADER_REPLYTO_EMPTY_DELIMITER + HEADER_DATE_EMPTY_DELIMITER + + + RCVD_ILLEGAL_CHARS + FAKE_RECEIVED_mail_ru + FAKE_RECEIVED_smtp_yandex_ru + FORGED_GENERIC_RECEIVED + FORGED_GENERIC_RECEIVED2 + FORGED_GENERIC_RECEIVED3 + FORGED_GENERIC_RECEIVED4 + FORGED_GENERIC_RECEIVED5 + INVALID_POSTFIX_RECEIVED + INVALID_EXIM_RECEIVED + INVALID_EXIM_RECEIVED2 + + + DATE_IN_FUTURE + DATE_IN_PAST + + + + +FORGED_RECIPIENTS & -MAILLIST +FORGED_MUA_OUTLOOK & -MAILLIST + + + + + fuzzy + localhost:11335 + 1 + 2048 + 0 + + /var/run/rspamd/fuzzy.db + yes + + + controller + localhost:11334 + 1 + 2048 + 0 + + q1 + + + normal + *:11333 + 1 + 2048 + 0 + + + + + + + + localhost:11335 + R_FUZZY + 300 + 10 + application/pdf + 1:R_FUZZY1:10,2:R_FUZZY2:5,3:R_FUZZY3:-2.1 + + + + + + FORGED_SENDER + FORGED_RECIPIENTS + + + + + MAILLIST + + + + + file://@ETC_PREFIX@/rspamd/surbl-whitelist.inc + file://@ETC_PREFIX@/rspamd/2tld.inc + JP + AB + OB + PH + WS + SC + uribl.rambler.ru + + dbl.spamhaus.org + noip + + + + + + + RECEIVED_RBL + pbl.spamhaus.org + xbl.spamhaus.org + insecure-bl.rambler.ru + + + + + + + + 0.1 + R_MIXED_CHARSET + + + + + mail + static + dynamic + ONCE_RECEIVED_STRICT + ONCE_RECEIVED + + + + + + type = dnsbl, map = pbl.spamhaus.org, symbol = R_IP_PBL + + + + + PHISHING + + + + + + + + + symbol = RAMBLER_EMAILBL, dnsbl = email-bl.rambler.ru, domain_only = false + + + + + 2048 + 1d + + + + + + + + + + osb-text + default + 10 + + BAYES_HAM + 10M + /var/run/rspamd/bayes.ham + + + BAYES_SPAM + 10M + /var/run/rspamd/bayes.spam + + + + + + + + @ETC_PREFIX@/rspamd/plugins/lua/ + + + + diff --git a/rspamd.xml.sample b/rspamd.xml.sample deleted file mode 100644 index 1fadb1229..000000000 --- a/rspamd.xml.sample +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - - - - /tmp - - /var/run/rspamd/rspamd.pid - - regexp,surbl,chartable,fuzzy_check,spf - - 250M - - yes - - no - - no - - 1s - - 5 - - /var/run/rspamd/symbols.cache - - - - - - info - yes - console - - - - - - - - - default - 10.0 - - reject - greylist:5 - add_header:5 - - - - - MISSING_SUBJECT - - FORGED_OUTLOOK_TAGS - - FORGED_SENDER - - SUSPICIOUS_RECIPS - - FAKE_REPLY_C - - MIME_HTML_ONLY - - FORGED_MSGID_YAHOO - - FORGED_MUA_THEBAT_BOUN - - R_MISSING_CHARSET - - RCVD_DOUBLE_IP_SPAM - - FORGED_OUTLOOK_HTML - - R_UNDISC_RCPT - - R_WHITE_ON_WHITE - - HTML_SHORT_LINK_IMG_2 - - FORGED_MUA_OUTLOOK - - FORGED_MUA_OUTLOOK_MAILLIST - - - SUSPICIOUS_BOUNDARY - - SUSPICIOUS_BOUNDARY2 - - SUSPICIOUS_BOUNDARY3 - - SUSPICIOUS_BOUNDARY4 - - - FORGED_MUA_THEBAT_MSGID - - FORGED_MUA_THEBAT_MSGID_UNKNOWN - - - FORGED_MUA_KMAIL_MSGID - - FORGED_MUA_KMAIL_MSGID_UNKNOWN - - - FORGED_MUA_OPERA_MSGID - - SUSPICIOUS_OPERA_10W_MSGID - - - FORGED_MUA_MOZILLA_MAIL_MSGID - - FORGED_MUA_MOZILLA_MAIL_MSGID_UNKNOWN - - FORGED_MUA_THUNDERBIRD_MSGID - - FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN - - FORGED_MUA_SEAMONKEY_MSGID - - FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN - - - FM_FAKE_HELO_VERIZON - - REPTO_QUOTE_YAHOO - - MISSING_MIMEOLE - - MISSING_TO - - - FROM_EXCESS_BASE64 - - FROM_EXCESS_QP - - TO_EXCESS_BASE64 - - TO_EXCESS_QP - - REPLYTO_EXCESS_BASE64 - - REPLYTO_EXCESS_QP - - CC_EXCESS_BASE64 - - CC_EXCESS_QP - - - R_MIXED_CHARSET - - SORTED_RECIPS - - R_RCVD_SPAMBOTS - - R_TO_SEEMS_AUTO - - SUBJECT_NEEDS_ENCODING - - TRACKER_ID - - R_NO_SPACE_IN_FROM - - R_SAJDING - - R_BAD_CTE_7BIT - - R_FLASH_REDIR_IMGSHACK - - INVALID_MSGID - - MISSING_MID - - FORGED_RECIPIENTS - - FORGED_RECIPIENTS_MAILLIST - - RATWARE_MS_HASH - - STOX_REPLY_TYPE - - R_IP_PBL - - ONCE_RECEIVED - - ONCE_RECEIVED_STRICT - - RECEIVED_RBL - - R_PARTS_DIFFER - - MIME_HEADER_CTYPE_ONLY - - R_EMPTY_IMAGE - - - DRUGS_MANYKINDS - - DRUGS_ANXIETY - DRUGS_MUSCLE - DRUGS_ANXIETY_EREC - DRUGS_DIET - DRUGS_ERECTILE - - - ADVANCE_FEE_2 - ADVANCE_FEE_3 - - - R_LOTTO - - - BAYES_SPAM - BAYES_HAM - - - R_FUZZY - R_FUZZY1 - R_FUZZY2 - R_FUZZY3 - - - R_SPF_FAIL - R_SPF_SOFTFAIL - R_SPF_ALLOW - - - MAILLIST - - - - PH_SURBL_MULTI - - OB_SURBL_MULTI - - AB_SURBL_MULTI - - SC_SURBL_MULTI - - JP_SURBL_MULTI - - WS_SURBL_MULTI - - - RAMBLER_URIBL - - - RAMBLER_EMAILBL - - - PHISHING - - - HEADER_FROM_DELIMITER_TAB - HEADER_TO_DELIMITER_TAB - HEADER_CC_DELIMITER_TAB - HEADER_REPLYTO_DELIMITER_TAB - HEADER_DATE_DELIMITER_TAB - - - HEADER_FROM_EMPTY_DELIMITER - HEADER_TO_EMPTY_DELIMITER - HEADER_CC_EMPTY_DELIMITER - HEADER_REPLYTO_EMPTY_DELIMITER - HEADER_DATE_EMPTY_DELIMITER - - - RCVD_ILLEGAL_CHARS - FAKE_RECEIVED_mail_ru - FAKE_RECEIVED_smtp_yandex_ru - FORGED_GENERIC_RECEIVED - FORGED_GENERIC_RECEIVED2 - FORGED_GENERIC_RECEIVED3 - FORGED_GENERIC_RECEIVED4 - FORGED_GENERIC_RECEIVED5 - INVALID_POSTFIX_RECEIVED - INVALID_EXIM_RECEIVED - INVALID_EXIM_RECEIVED2 - - - DATE_IN_FUTURE - DATE_IN_PAST - - - - -FORGED_RECIPIENTS & -MAILLIST -FORGED_MUA_OUTLOOK & -MAILLIST - - - - - fuzzy - localhost:11335 - 1 - 2048 - 0 - - /tmp/fuzzy.db - yes - - - controller - localhost:11334 - 1 - 2048 - 0 - - q1 - - - normal - *:11333 - 1 - 2048 - 0 - - - - - - - - localhost:11335 - R_FUZZY - 300 - 10 - application/pdf - 1:R_FUZZY1:10,2:R_FUZZY2:5,3:R_FUZZY3:-2.1 - - - - - - FORGED_SENDER - FORGED_RECIPIENTS - - - - - MAILLIST - - - - - file://@ETC_PREFIX@/rspamd/surbl-whitelist.inc - file://@ETC_PREFIX@/rspamd/2tld.inc - JP - AB - OB - PH - WS - SC - uribl.rambler.ru - - 10s - 1s - localhost:8080 - - - - - RECEIVED_RBL - pbl.spamhaus.org - xbl.spamhaus.org - insecure-bl.rambler.ru - - - - - - - - 0.1 - R_MIXED_CHARSET - - - - - mail - static - dynamic - ONCE_RECEIVED_STRICT - ONCE_RECEIVED - - - - - - type = dnsbl, map = pbl.spamhaus.org, symbol = R_IP_PBL - - - - - PHISHING - - - - - - - - - - - - - - - - - - - - osb-text - default - 10 - - BAYES_HAM - 10M - /var/run/rspamd/bayes.ham - master - - - BAYES_SPAM - 10M - /var/run/rspamd/bayes.spam - master - - - - - - - - @ETC_PREFIX@/rspamd/plugins/lua/ - - - -