Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-01-2006, 01:39 AM   #1
Registered: Aug 2004
Location: Jaipur(Rajasthan), INDIA
Posts: 35

Rep: Reputation: 15
Stop Spam


I m managing a sendmail server....I want to stop some domaind to send mails to us.... Do we have an online database that we can use( & how to use) ...and any mail coming in will check whether the mail is from a domain listed in the database and reject or permit accordingly.... OR can we have a database that we can download and it also provides regular updates regarding domains that send spams...We could hace managed the database locally... but the number of domains could be huge... and moreover no one is aware of all the domains... ...HELP !!!
Old 03-01-2006, 03:00 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Just ask your friend Google with the terms: spam domain blacklist
Old 03-01-2006, 07:11 AM   #3
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
We have successfully reduced spam to < 1% with the following setup:
  • greylisting
  • checks for invalid sender/recipient domains, HELO restrictions, etc
  • SpamAssassin
Old 03-01-2006, 08:43 AM   #4
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Rep: Reputation: 19
Hi P Test,

try following lines at the last of ur file

FEATURE(`dnsbl', `', `"550 Mail from " $`'&{client_addr} " refused - see"')dnl
FEATURE(`dnsbl', `', `"550 Mail from " $`'&{client_addr} " refused - see"')dnl
FEATURE(`dnsbl', `', `"550 Mail from " $`'&{client_addr} " refused - see"')dnl
FEATURE(`dnsbl', `', `"550 Mail from " $`'&{client_addr} " refused - see"')dnl
FEATURE(`dnsbl', `', `"550 Mail from " $`'&{client_addr} " refused - see"')dnl
FEATURE(`dnsbl', `', `"550 Mail from " $`'&{client_addr} " refused - see\#why_rejected"')dnl

here is some example database ,,, ,

u can find more databses through googleing and just use that database with another line. just follow the above lines starting from "FEATURE" and end with "dnl"

dont forget to

m4 /etc/mail/ > /etc/mail/

after editing ur file

Last edited by orko; 03-01-2006 at 08:47 AM.


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
Stop Spam namit Linux - Software 2 12-08-2005 06:17 AM
How the sendmail stop the Spam mail? goonfui_wong Linux - Networking 6 06-29-2005 09:04 AM
how to stop sendmail spam ? basbosco Linux - Security 2 11-10-2003 01:17 PM
how to stop spam:sendmail nabil Linux - General 6 10-21-2002 09:44 AM
how to stop spam:sendmail nabil Linux - General 3 09-10-2002 06:17 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:17 AM.

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