Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 12-29-2007, 01:08 PM   #1
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
Spam Mngmnt Icedove

Stand Alone (Home) Desktop
HS Cable Modem to ISP

I'm a GNUbie with no CS background.

I'm trying to figure out if it's possible to filter and/or move/drop email predicated on IP block/ranges in Icedove.

I've got a flimsy sense of how this might be done if I were running getmail, postfix and
Spamassassin... but I don't know if adding these intermdiate apps is necessary or even feasible for a Stand-Alone Home Desktop. I've also looked at using iptables, but I don't think that applies to this objective... as far as I can tell anyway.

Ideally, I'd like to generate an “undeliverable” type SMTP response for certain of our favorite jewelery, nostrum and stock promoters in
Asia, Eastern Europe and South America by applying rules to the IP Blocks that keep reappearing.

In the example header below, the 'purported' ip appears in 3 different lines in the header: the “Received-SPF:” line, the
“X-Default-Received-SPF: line, and down at the bottom in the
“X-Originating-IP” line added by my ISP. “~$ dig -x” indicates the ip belongs in “inetnum: –”.

In Icedove's “Message Filter Rules” menu, I have these options:
Subject, From, Body, Date, Priority, Status, To, Cc, To or Cc, Age
in Days, Size and Customize.
The “Customize” option is to create a “New Message Header”;
which option is still a bit confusing to me even though I've read everything I can find about it. If I understand it at all, it wouldn't apply to my objective.

I realize I can filter on the ip# itself, and create a filter based on the email itself, but that's a waste of time as everyone knows. In the example at bottom, I'd like to filter on netblock “ –” if it can be done.

I guess the second part of my the question involves: why can't I “filter on” any header line I want? My ISP is gracious enough to add header lines in many of my spam such as:
X-ORBS-Stamp: Listed in pbl,
X-ORBS-Stamp: open relay,
...that would be handy to filter on too; ...just citing ”Contains” “X-ORBS-Stamp:
Listed in pbl,” would be good enough for me.

Why can't a shell script be added to “msgFilterRules.dat” to handle this?

Happy trails,


X-Account-Key: account3
Received-SPF: none (No spf1 record for ( )
client-ip=; envelope-from=<>;
X-Default-Received-SPF: fail (Last token {-all} (res=FAIL))
client-ip=; envelope-from=<>;
Received: from (unverified [])
by (DCCNet Email Cluster2) with ESMTP id 95138108-
for <x>; Thu, 20 Dec 2007 01:53:38 -0800
Return-Path: <>
Message-ID: <000a______________________f6bc@ualugoh>
From: "Chanel Watches" <>
To: "Rolex Watches" <x>
Subject: Watches
Date: Wed, 20 Dec 2000 08:06:41 +0000
MIME-Version: 1.0
Content-Type: multipart/alternative;
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-Rcpt-To: <x>
X-SpamDetect: ************: 12.700000 NakedCR=0.2, DodgySource
=2.0, SPF
Default Fail=1.0, S_ab=1.1, S_ob=1.1, S_sc=1.1, S_ws=1.1, S_jp=1.1,
X-NakedCr: Body contained naked cr characters
X-Surbl: jp
X-VirusScan: Message is clean (g_virus_cmd scanned message)
X-IP-stats: No info recorded yet ip=


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
spam filter that puts spam into spam folder? paul_mat Linux - Software 3 03-31-2009 04:18 AM
Migrate from Evolution to Icedove txHarleyMan Linux - Software 1 12-21-2007 08:03 PM
icedove - retrieve ALL messages verbose Linux - Software 0 11-01-2007 07:00 PM
Icedove graphics revenge80200 Debian 4 02-21-2007 10:07 PM
How do I make icedove go away? sigma957 Debian 4 11-17-2006 01:51 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration