Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a small mailman-based mailing list on a Linux server, and the only spam posts we seem to get are in russian. They are automatically moderated of course, since they're not subscribed to the list, but it's still a hassle to have to always go in and clear out the moderation queue. Is there any way I can set up a simple filter that based on certain keywords will just junk incoming mails before mailman sees/processes them?

EDIT: Here is a sample mail


Return-Path: <>
Received: from ( [])
    by xxx(Postfix) with ESMTP id 4DB4314A45
    for <>; Mon, 27 Feb 2012 02:38:32 -0800 (PST)
Date: Mon, 27 Feb 2012 14:39:37 +0400
From: =?Windows-1251?B?z/Du4mXw6ug=?= <>
Reply-To: =?Windows-1251?B?z/Du4mXw6ug=?= <>
X-Priority: 3 (Normal)
Message-ID: <>
To: <>
Subject: =?Windows-1251?B?w2/yb+Lo7GP/IOog73Bv4uXw6uDs?=
MIME-Version: 1.0
Content-Type: multipart/alternative;


From: "Пpактикa cиcтeмного упpaвлeния" <>
To: <>
Date: Tue, 28 Feb 2012 20:28:19 +0400
Subject: Инстpументы наведeния пopядкa в бизнесe

1 маpтa, 2012 г.

Инcтрумeнты наведeния пoрядкa
в бизнеce
или прaктика cиcтeмного упpавления

г. Kиeв, ул. Горькoго (Aнтонoвича), 172
бизнeс-центр «Пaлладиум Cити», 8 эт, oф. 817.

Тeл.: (044) 331-шeсть-чeтыре-14, 592-сeмь-пять-64


share|improve this question
Do you have any other anti-spam tools on the system? I know spamassassin has some facilities to score based on the language. – Zoredache Feb 27 '12 at 23:58
no more vodka dang that sucks – tony roth Feb 28 '12 at 0:09
Show at least one example of headers. For dumb-cases you, probably, can do header-based filtering – Lazy Badger Feb 28 '12 at 2:52

I'd just whip up a procmail recipe that rejects any mail matching one or more Russian vowels.

share|improve this answer
Can you give an example, or point me to a page showing simple examples on how to use procmail? I'm a noob at this sort of thing. – davr Feb 28 '12 at 17:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.