LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-27-2002, 05:57 AM   #1
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Rep: Reputation: 15
Sendmail Expert


Hi

I'm using Sendmail at home
My problem is that I'm receiving a lot of spam from addresses like

u.34.net
r.4.net
j.98.net

and more.

I have written an small script that take cares of this, the script generates an file that looks like this


a.01.net 550 No spam allowed
a.02.net 550 No spam allowed
.....
a.98.net 550 No spam allowed
b.01.net 550 No spam allowed

and so on until z.98.net is reached.


But this generates a big blocklist just for one spamsender.

My question is, does anyone know how/if ? I can use regexp in sendmail to block these addresses with only one row ?

Ex

[?].[01-98].net 550 No spam allowed

(the ? will match anychar, such as a-z and 0-9 is simply 0-9)

It would be great so I can reduce the size of my spamlist :-)


an example of my spamlist right now
www.thegate.nu/tmp/access_db

Last edited by FredrikN; 12-27-2002 at 06:34 AM.
 
Old 12-27-2002, 09:07 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
I'm just wondering if you could approach this from another angle...
Some of the FROM domains you gave don't even resolve, eg 4.net no dns server allocated..
34.net is the WTC in New York, and everything at 98.net resolves to the same ip address...
I would also be sure any REPY TO address is different from the FROM address.. as this data is very easily forged...
This is handled inside Sendmail filters with ip source verification and blackhole lookups.
It will avoid having a monster accessdb list for each site that doesn't regex to a number format...
 
Old 12-28-2002, 10:23 AM   #3
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Original Poster
Rep: Reputation: 15
"I would also be sure any REPY TO address is different from the FROM address.."

Yes, that's right.

Thanks 4 your reply
 
Old 12-28-2002, 02:03 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
I don't know how to do it in sendmail, but I'm using some RBL (blackhole lists) in my posffix configuration. It's managed to tag and refuse a few messages so far.
Code:
maps_rbl_domains =
        relays.ordb.org,
        inputs.relays.osirusoft.com,
        spews.relays.osirusoft.com
*
*
*
smtpd_recipient_restrictions=
       reject_maps_rbl,

Last edited by mcleodnine; 12-28-2002 at 02:05 PM.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need an expert BookMaker Linux - Newbie 6 07-09-2005 08:03 PM
Need some expert help - Sim65 mattblack_uk Linux - Software 0 11-16-2004 02:18 AM
need an expert for this one jjd228 Linux - Software 22 08-19-2004 12:51 AM
Network Expert............???? avols143 Linux - Networking 3 01-30-2004 02:48 PM
Expert Please eckomark Linux - Newbie 6 11-11-2001 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:58 PM.

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