qmail spam filter question

This is a discussion on qmail spam filter question within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi, I am having a lot of problems from spammers that try to send faked emails with Mail From: invalid_user@...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2004
Zorba@nonexistent.com
 
Posts: n/a
Default qmail spam filter question

Hi,

I am having a lot of problems from spammers that try to send faked emails with Mail From:
invalid_user@existingdomain.com and a fake Return-Path to a valid user where they want to send spam. In
/var/log/qmail/current I can not see their IP's.

1. I would like to put a system that will overhead their servers by just dropping the TCP connection without FIN or
CLOSE when I saw that the intended delivery recipient is not valid.

2. Or better to keep their connection blocked and send a keepalive or ACK every 30 sec without getting real traffic -
just to tale out one thread, memory and buffers from their server.


I think if a system like above if will be installed on most mail servers, spammers will have their server crashed by
having all connections blocked without sending much traffic; what do you think, can this be a solution? How can be done?


Thank you,

Chris


Reply With Quote
  #2 (permalink)  
Old 02-28-2004
Thomas Krug
 
Posts: n/a
Default Re: qmail spam filter question

Zorba@nonexistent.com <nospam@nonexistent.com> wrote:
> Hi,
>
> I am having a lot of problems from spammers that try to send faked
> emails with Mail From: invalid_user@existingdomain.com and a fake
> Return-Path to a valid user where they want to send spam. In
> /var/log/qmail/current I can not see their IP's.
>
> 1. I would like to put a system that will overhead their servers by
> just dropping the TCP connection without FIN or CLOSE when I saw that
> the intended delivery recipient is not valid.
>
> 2. Or better to keep their connection blocked and send a keepalive or
> ACK every 30 sec without getting real traffic - just to tale out one
> thread, memory and buffers from their server.
>
>
> I think if a system like above if will be installed on most mail
> servers, spammers will have their server crashed by having all
> connections blocked without sending much traffic; what do you think,
> can this be a solution? How can be done?
>
>
> Thank you,
>
> Chris




Not that hard. There are already patches for a nice badrcptto/ badmailfrom
filtering,
for additional logging and for tarpitting (if the rcpts are too many).
-> combine it :-)

Hm... if you drop the connection, the sender wil try again and so he will
still use your mailslots/ available smtp connections.
But you could tarpit a sender with some
<code> please wait a little bit....
message - the smtp session will therefore persist until some maximum
transmission timeout takes place.

You could slow down the transmission itself as well but this would be more
difficult to implement I guess; it would be easier to slow things down after
the sender sent "DATA" and before your mail server sends it's "ok - go
ahead".

If many servers are set up like this, the spammers will get themselves
better machines and simply flood your server with connections - I don't
think this would help very much. I prefer a message like "I don't like you -
go away!"; a sender might be on your black list by accident - with simply
tarpitting the connection he/she will not find out what went wrong.

Best regards
Thomas.



Reply With Quote
  #3 (permalink)  
Old 02-28-2004
Zorba@nonexistent.com
 
Posts: n/a
Default Re: qmail spam filter question

My server is protected, I will not accept more than 200 concurrent connections from any IP.

I searched more and I found this patch
http://spamthrottle.qmail.ca/man/qma...hrottle.5.html

I will try to see if I can integrate with other patches.

Thank you,
Chris




"Thomas Krug" <dont-even-think-of-sending-me-spam@siw.de> wrote in message news:c1p7fi$ail$02$1@news.t-online.com...
Zorba@nonexistent.com <nospam@nonexistent.com> wrote:
> Hi,
>
> I am having a lot of problems from spammers that try to send faked
> emails with Mail From: invalid_user@existingdomain.com and a fake
> Return-Path to a valid user where they want to send spam. In
> /var/log/qmail/current I can not see their IP's.
>
> 1. I would like to put a system that will overhead their servers by
> just dropping the TCP connection without FIN or CLOSE when I saw that
> the intended delivery recipient is not valid.
>
> 2. Or better to keep their connection blocked and send a keepalive or
> ACK every 30 sec without getting real traffic - just to tale out one
> thread, memory and buffers from their server.
>
>
> I think if a system like above if will be installed on most mail
> servers, spammers will have their server crashed by having all
> connections blocked without sending much traffic; what do you think,
> can this be a solution? How can be done?
>
>
> Thank you,
>
> Chris




Not that hard. There are already patches for a nice badrcptto/ badmailfrom
filtering,
for additional logging and for tarpitting (if the rcpts are too many).
-> combine it :-)

Hm... if you drop the connection, the sender wil try again and so he will
still use your mailslots/ available smtp connections.
But you could tarpit a sender with some
<code> please wait a little bit....
message - the smtp session will therefore persist until some maximum
transmission timeout takes place.

You could slow down the transmission itself as well but this would be more
difficult to implement I guess; it would be easier to slow things down after
the sender sent "DATA" and before your mail server sends it's "ok - go
ahead".

If many servers are set up like this, the spammers will get themselves
better machines and simply flood your server with connections - I don't
think this would help very much. I prefer a message like "I don't like you -
go away!"; a sender might be on your black list by accident - with simply
tarpitting the connection he/she will not find out what went wrong.

Best regards
Thomas.




Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0