Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | RCPT_MAILCOW_DOMAIN { |
| 2 | type = "rcpt"; |
| 3 | filter = "email:domain"; |
| 4 | map = "redis://DOMAIN_MAP"; |
| 5 | symbols_set = ["RCPT_MAILCOW_DOMAIN"]; |
| 6 | } |
| 7 | |
| 8 | WHITELISTED_FWD_HOST { |
| 9 | type = "ip"; |
| 10 | map = "redis://WHITELISTED_FWD_HOST"; |
| 11 | symbols_set = ["WHITELISTED_FWD_HOST"]; |
| 12 | } |
| 13 | |
| 14 | BULK_HEADER { |
| 15 | type = "content"; |
| 16 | map = "${LOCAL_CONFDIR}/custom/bulk_header.map"; |
| 17 | filter = "headers" |
| 18 | regexp = true; |
| 19 | symbols_set = ["BULK_HEADER"]; |
| 20 | } |
| 21 | |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 22 | CHAT_VERSION_HEADER { |
| 23 | type = "header"; |
| 24 | header = "Chat-Version"; |
| 25 | map = "${LOCAL_CONFDIR}/custom/chat_versions.map"; |
| 26 | regexp = true; |
| 27 | symbols_set = ["CHAT_VERSION_HEADER"]; |
| 28 | } |
| 29 | |
| 30 | BAD_HEADER { |
| 31 | type = "content"; |
| 32 | map = "${LOCAL_CONFDIR}/custom/bad_header.map"; |
| 33 | filter = "headers" |
| 34 | regexp = true; |
| 35 | symbols_set = ["BAD_HEADER"]; |
| 36 | } |
| 37 | |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 38 | LOCAL_BL_ASN { |
| 39 | require_symbols = "!MAILCOW_WHITE"; |
| 40 | type = "asn"; |
| 41 | map = "${LOCAL_CONFDIR}/custom/bad_asn.map"; |
| 42 | score = 5; |
| 43 | description = "Sender's ASN is on the local blacklist"; |
| 44 | symbols_set = ["LOCAL_BL_ASN"]; |
| 45 | } |
| 46 | |
| 47 | GLOBAL_SMTP_FROM_WL { |
| 48 | type = "from"; |
| 49 | map = "${LOCAL_CONFDIR}/custom/global_smtp_from_whitelist.map"; |
| 50 | regexp = true; |
| 51 | score = -2050; |
| 52 | } |
| 53 | |
| 54 | GLOBAL_SMTP_FROM_BL { |
| 55 | type = "from"; |
| 56 | map = "${LOCAL_CONFDIR}/custom/global_smtp_from_blacklist.map"; |
| 57 | regexp = true; |
| 58 | score = 2050; |
| 59 | } |
| 60 | |
| 61 | GLOBAL_MIME_FROM_WL { |
| 62 | type = "header"; |
| 63 | header = "from"; |
| 64 | filter = "email:addr"; |
| 65 | map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map"; |
| 66 | regexp = true; |
| 67 | score = -2050; |
| 68 | } |
| 69 | |
| 70 | GLOBAL_MIME_FROM_BL { |
| 71 | type = "header"; |
| 72 | header = "from"; |
| 73 | filter = "email:addr"; |
| 74 | map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map"; |
| 75 | regexp = true; |
| 76 | score = 2050; |
| 77 | } |
| 78 | |
| 79 | GLOBAL_RCPT_WL { |
| 80 | type = "rcpt"; |
| 81 | map = "${LOCAL_CONFDIR}/custom/global_rcpt_whitelist.map"; |
| 82 | regexp = true; |
| 83 | prefilter = true; |
| 84 | action = "accept"; |
| 85 | } |
| 86 | |
| 87 | GLOBAL_RCPT_BL { |
| 88 | type = "rcpt"; |
| 89 | map = "${LOCAL_CONFDIR}/custom/global_rcpt_blacklist.map"; |
| 90 | regexp = true; |
| 91 | prefilter = true; |
| 92 | action = "reject"; |
| 93 | } |
| 94 | |
| 95 | SIEVE_HOST { |
| 96 | type = "ip"; |
| 97 | map = "${LOCAL_CONFDIR}/custom/dovecot_trusted.map"; |
| 98 | symbols_set = ["SIEVE_HOST"]; |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | RSPAMD_HOST { |
| 102 | type = "ip"; |
| 103 | map = "${LOCAL_CONFDIR}/custom/rspamd_trusted.map"; |
| 104 | symbols_set = ["RSPAMD_HOST"]; |
| 105 | } |
| 106 | |
| 107 | MAILCOW_DOMAIN_HEADER_FROM { |
| 108 | type = "header"; |
| 109 | header = "from"; |
| 110 | filter = "email:domain"; |
| 111 | map = "redis://DOMAIN_MAP"; |
| 112 | } |
| 113 | |
| 114 | IP_WHITELIST { |
| 115 | type = "ip"; |
| 116 | map = "${LOCAL_CONFDIR}/custom/ip_wl.map"; |
| 117 | symbols_set = ["IP_WHITELIST"]; |
| 118 | score = -2050; |
| 119 | } |
| 120 | |
| 121 | FISHY_TLD { |
| 122 | type = "from"; |
| 123 | filter = "email:domain"; |
| 124 | map = "${LOCAL_CONFDIR}/custom/fishy_tlds.map"; |
| 125 | regexp = true; |
| 126 | score = 0.1; |
| 127 | } |
| 128 | |
| 129 | BAD_WORDS { |
| 130 | type = "content"; |
| 131 | filter = "text"; |
| 132 | map = "${LOCAL_CONFDIR}/custom/bad_words.map"; |
| 133 | regexp = true; |
| 134 | score = 0.1; |
| 135 | } |
| 136 | |
| 137 | BAD_WORDS_DE { |
| 138 | type = "content"; |
| 139 | filter = "text"; |
| 140 | map = "${LOCAL_CONFDIR}/custom/bad_words_de.map"; |
| 141 | regexp = true; |
| 142 | score = 0.1; |
| 143 | } |
| 144 | |
| 145 | BAD_LANG { |
| 146 | type = 'selector'; |
| 147 | selector = 'languages'; |
| 148 | map = "${LOCAL_CONFDIR}/custom/bad_languages.map"; |
| 149 | symbols_set = ["LANG_FILTER"]; |
| 150 | regexp = true; |
| 151 | score = 5.0; |
| 152 | } |
| 153 | |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 154 | BAZAAR_ABUSE_CH { |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 155 | type = "selector"; |
| 156 | selector = "attachments(hex,md5)"; |
| 157 | map = "https://bazaar.abuse.ch/export/txt/md5/recent/"; |
| 158 | score = 10.0; |
| 159 | } |
| 160 | |
| 161 | URLHAUS_ABUSE_CH { |
| 162 | type = "url"; |
| 163 | filter = "full"; |
| 164 | map = "https://urlhaus.abuse.ch/downloads/text_online/"; |
| 165 | score = 10.0; |
| 166 | } |
| 167 | |
| 168 | SMTP_LIMITED_ACCESS { |
| 169 | type = "user"; |
| 170 | map = "redis://SMTP_LIMITED_ACCESS"; |
| 171 | symbols_set = ["SMTP_LIMITED_ACCESS"]; |
| 172 | } |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 173 | |
| 174 | BAD_SUBJECT_00 { |
| 175 | type = "header"; |
| 176 | header = "subject"; |
| 177 | regexp = true; |
| 178 | map = "http://nullnull.org/bad-subject-regex.txt"; |
| 179 | score = 6.0; |
| 180 | symbols_set = ["BAD_SUBJECT_00"]; |
| 181 | } |