Email, Messaging, & Video Calls Email How to Filter Foreign Language Spam With SpamAssassin Using an email filter by Heinz Tschabitscher Writer A former freelance contributor who has reviewed hundreds of email programs and services since 1997. our editorial process Heinz Tschabitscher Updated on July 11, 2019 Wikimedia commons Email Yahoo! Mail Gmail Tweet Share Email SpamAssassin for email spam filtering uses a variety of techniques to detect spam including DNS-based methods, Bayesian filtering, blacklist, external programs, and online databases. It applies a large set of rules which are matched against the body or header of a message, to assess whether an email is spam. Each test results in an assigned score if it matches the criteria of the test. SpamAssassin treats all languages equally; however, you can configure it to parse each message and determine the language used. If it is not one of the "allowed" languages, SpamAssassin automatically adds a few points the message's spam score. If SpamAssassin is not sure about the language used, no points are assigned. Filter Foreign Language Spam With SpamAssassin To have SpamAssassin filter out mail-in foreign tongues: Open /etc/mail/spamassassin/local.cf in your favorite editor.If not present, add "ok_languages " on a line of itself.List the languages (from the list below) you want to accept, separated by spaces:af — Afrikaanssq — Albanianam — Amharicar — Arabichy — Armenianeu — Basquebs — Bosnianbg — Bulgarianbe — Belorussianca — Catalanzh — Chinesehr — Croatiancs — Czechda — Danishnl — Dutchen — Englisheo — Esperantoet — Estonianfi — Finnishfr — Frenchfy — Frisianka — Georgiande — Germanel — Greekhe — Hebrewhu — Hungarianhi — Hindiis — Icelandicid — Indonesianga — Irish Gaelicit — Italianja — Japaneseko — Koreanla — Latinlv — Latvianlt — Lithuanianms — Malaymr — Marathine — Nepalino — Norwegianfa — Persianpl — Polishpt — Portuguesequ — Quechuarm — Rhaeto-Romancero — Romanianru — Russiansa — Sanskritsco — Scotsgd — Scottish Gaelicsr — Serbiansk — Slovaksl — Slovenianes — Spanishsw — Swahilisv — Swedishtl — Tagalogta — Tamilth — Thaitr — Turkishuk — Ukrainianvi — Vietnamesecy — Welshyi — Yiddish To accept mail in English, German, Latin, Thai and Swedish, for example, use "ok_languages en de la th sv".