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 | |
| 22 | LOCAL_BL_ASN { |
| 23 | require_symbols = "!MAILCOW_WHITE"; |
| 24 | type = "asn"; |
| 25 | map = "${LOCAL_CONFDIR}/custom/bad_asn.map"; |
| 26 | score = 5; |
| 27 | description = "Sender's ASN is on the local blacklist"; |
| 28 | symbols_set = ["LOCAL_BL_ASN"]; |
| 29 | } |
| 30 | |
| 31 | GLOBAL_SMTP_FROM_WL { |
| 32 | type = "from"; |
| 33 | map = "${LOCAL_CONFDIR}/custom/global_smtp_from_whitelist.map"; |
| 34 | regexp = true; |
| 35 | score = -2050; |
| 36 | } |
| 37 | |
| 38 | GLOBAL_SMTP_FROM_BL { |
| 39 | type = "from"; |
| 40 | map = "${LOCAL_CONFDIR}/custom/global_smtp_from_blacklist.map"; |
| 41 | regexp = true; |
| 42 | score = 2050; |
| 43 | } |
| 44 | |
| 45 | GLOBAL_MIME_FROM_WL { |
| 46 | type = "header"; |
| 47 | header = "from"; |
| 48 | filter = "email:addr"; |
| 49 | map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map"; |
| 50 | regexp = true; |
| 51 | score = -2050; |
| 52 | } |
| 53 | |
| 54 | GLOBAL_MIME_FROM_BL { |
| 55 | type = "header"; |
| 56 | header = "from"; |
| 57 | filter = "email:addr"; |
| 58 | map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map"; |
| 59 | regexp = true; |
| 60 | score = 2050; |
| 61 | } |
| 62 | |
| 63 | GLOBAL_RCPT_WL { |
| 64 | type = "rcpt"; |
| 65 | map = "${LOCAL_CONFDIR}/custom/global_rcpt_whitelist.map"; |
| 66 | regexp = true; |
| 67 | prefilter = true; |
| 68 | action = "accept"; |
| 69 | } |
| 70 | |
| 71 | GLOBAL_RCPT_BL { |
| 72 | type = "rcpt"; |
| 73 | map = "${LOCAL_CONFDIR}/custom/global_rcpt_blacklist.map"; |
| 74 | regexp = true; |
| 75 | prefilter = true; |
| 76 | action = "reject"; |
| 77 | } |
| 78 | |
| 79 | SIEVE_HOST { |
| 80 | type = "ip"; |
| 81 | map = "${LOCAL_CONFDIR}/custom/dovecot_trusted.map"; |
| 82 | symbols_set = ["SIEVE_HOST"]; |
| 83 | score = -15; |
| 84 | } |
| 85 | |
| 86 | RSPAMD_HOST { |
| 87 | type = "ip"; |
| 88 | map = "${LOCAL_CONFDIR}/custom/rspamd_trusted.map"; |
| 89 | symbols_set = ["RSPAMD_HOST"]; |
| 90 | } |
| 91 | |
| 92 | MAILCOW_DOMAIN_HEADER_FROM { |
| 93 | type = "header"; |
| 94 | header = "from"; |
| 95 | filter = "email:domain"; |
| 96 | map = "redis://DOMAIN_MAP"; |
| 97 | } |
| 98 | |
| 99 | IP_WHITELIST { |
| 100 | type = "ip"; |
| 101 | map = "${LOCAL_CONFDIR}/custom/ip_wl.map"; |
| 102 | symbols_set = ["IP_WHITELIST"]; |
| 103 | score = -2050; |
| 104 | } |
| 105 | |
| 106 | FISHY_TLD { |
| 107 | type = "from"; |
| 108 | filter = "email:domain"; |
| 109 | map = "${LOCAL_CONFDIR}/custom/fishy_tlds.map"; |
| 110 | regexp = true; |
| 111 | score = 0.1; |
| 112 | } |
| 113 | |
| 114 | BAD_WORDS { |
| 115 | type = "content"; |
| 116 | filter = "text"; |
| 117 | map = "${LOCAL_CONFDIR}/custom/bad_words.map"; |
| 118 | regexp = true; |
| 119 | score = 0.1; |
| 120 | } |
| 121 | |
| 122 | BAD_WORDS_DE { |
| 123 | type = "content"; |
| 124 | filter = "text"; |
| 125 | map = "${LOCAL_CONFDIR}/custom/bad_words_de.map"; |
| 126 | regexp = true; |
| 127 | score = 0.1; |
| 128 | } |
| 129 | |
| 130 | BAD_LANG { |
| 131 | type = 'selector'; |
| 132 | selector = 'languages'; |
| 133 | map = "${LOCAL_CONFDIR}/custom/bad_languages.map"; |
| 134 | symbols_set = ["LANG_FILTER"]; |
| 135 | regexp = true; |
| 136 | score = 5.0; |
| 137 | } |
| 138 | |
| 139 | BAZAR_ABUSE_CH { |
| 140 | type = "selector"; |
| 141 | selector = "attachments(hex,md5)"; |
| 142 | map = "https://bazaar.abuse.ch/export/txt/md5/recent/"; |
| 143 | score = 10.0; |
| 144 | } |
| 145 | |
| 146 | URLHAUS_ABUSE_CH { |
| 147 | type = "url"; |
| 148 | filter = "full"; |
| 149 | map = "https://urlhaus.abuse.ch/downloads/text_online/"; |
| 150 | score = 10.0; |
| 151 | } |
| 152 | |
| 153 | SMTP_LIMITED_ACCESS { |
| 154 | type = "user"; |
| 155 | map = "redis://SMTP_LIMITED_ACCESS"; |
| 156 | symbols_set = ["SMTP_LIMITED_ACCESS"]; |
| 157 | } |