You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Christian Andersson <ca...@ofs.no> on 2004/04/28 09:25:05 UTC
Filtering out empty messages as spam
Hi there, I have recently been getting a higher amount of empty messages
in my mailbox, from what I can see these messages are some type of spam
or spamrelated. they might be some kind of tests to see if the
mail-server can be used to send spam.
anyway regardless of what they are, I would like to be able to filter
these messages out as "spam" attempts so that our users never gets those
messages.
Is there some matcher in james that can do this? match on an empty
message (by empty I mean one where the body containes only whitespaces.
I have included below one such message (with some parts changed ofcourse)
/Christian Andersson
From - Wed Apr 28 09:08:16 2004
X-UIDL: Mail1083139704617-49317
X-Mozilla-Status: 0000
X-Mozilla-Status2: 00000000
Return-Path: <ga...@rr.com>
Received: from adsl-66-72-203-112.dsl.clevoh.ameritech.net ([66.72.203.112])
by mail.someserver.com (JAMES SMTP Server 2.2.0a15) with SMTP
ID 881
for <so...@someserver.com>;
Wed, 28 Apr 2004 10:08:14 +0200 (CEST)
Date: Wed, 28 Apr 2004 10:08:14 +0200 (CEST)
From: gatewyr@rr.com
Delivered-To: some.user@someserver.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Message-ID: <22...@internet>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Filtering out empty messages as spam
Posted by "Noel J. Bergman" <no...@devtech.com>.
> I was thinking of setting up my own mail-server at home also, and
> there I have ADSL where I get the ip from a dhcp pool, and I would
> by introducing a filter for this cut of my own home-mailserver from
> the corporate mail server.
You could use your corporate mail server as a gateway, and add specific
access for your home system. If you don't do that, and even if you allow
DHCP e-mail so that you aren't cutting off your own home system, it won't
matter when you send e-mail directly from home to other systems that are
blocking DHCP pools. Most DNS RBLs include a zone for tracking DHCP pools,
and almost every e-mail admin I know is blocking DHCP pools.
There is almost no reason to accept e-mail from DHCP connected systems
coming from the USA. However, apparently some European ISPs do not provide
e-mail gateways. [They are not blocked for the @apache domain because of
concerns about ASF community members who are still sending through DHCP
systems, particularly in Germany.]
I'm planning to finally finish what might be the first piece of code I ever
started working on for James: a country matcher. I had stopped because I'd
hoped that we'd have better matcher configuration support, but for the first
cut, I'll just have to parse a string.
> HOW do I set up this type of filtering?
See the examples for the InSpammerBlacklist matcher. That is another
matcher that could use a bit of extension. I hope to replace it with an
InDNSRBL matcher that uses the DNS directly, allows specific zones to be
specified, and records the associated TXT record.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Filtering out empty messages as spam
Posted by Christian Andersson <ca...@ofs.no>.
After taking a look at most of these empty messages, it certainly looks
like they all comes from dhcp-pools (adsl/dsl/etc home computers) so it
certainly looks like I could try to filter them out directly, the
question then comes to, how big impackt would that be on legitimit mail?
at the moment I don't think there would be any problems, but for
example, I was thinking of setting up my own mail-server at home also,
and there I have ADSL where I get the ip from a dhcp pool, and I would
by introducing a filter for this cut of my own home-mailserver from the
corporate mail server.
if it just was my mail-server that would be no big problem filtero\ing
out so that messages from that one would come through, but it might not
be just my mail-server.
anyway, HOW do I set up this type of filtering?
/Christian
Noel J. Bergman wrote:
> There is no such matcher as yet, but you could easily write one.
>
> Note that adsl-66-72-203-112.dsl.clevoh.ameritech.net ([66.72.203.112]) is a
> DHCP user. Many mail servers ban e-mails sent directly from DHCP pools, by
> using DNS RBLs.
>
> --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Filtering out empty messages as spam
Posted by "Noel J. Bergman" <no...@devtech.com>.
There is no such matcher as yet, but you could easily write one.
Note that adsl-66-72-203-112.dsl.clevoh.ameritech.net ([66.72.203.112]) is a
DHCP user. Many mail servers ban e-mails sent directly from DHCP pools, by
using DNS RBLs.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org