LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



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

Rep: Reputation: 15
Stop Spam


Hi

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, 04:00 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Just ask your friend Google with the terms: spam domain blacklist
 
Old 03-01-2006, 08:11 AM   #3
markus1982
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, 09:43 AM   #4
orko
Member
 
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 sendmail.mc file


FEATURE(`dnsbl', `list.dsbl.org', `"550 Mail from " $`'&{client_addr} " refused - see http://dsbl.org/"')dnl
FEATURE(`dnsbl', `bl.spamcop.net', `"550 Mail from " $`'&{client_addr} " refused - see http://spamcop.net/bl.shtml"')dnl
FEATURE(`dnsbl', `blackholes.easynet.nl', `"550 Mail from " $`'&{client_addr} " refused - see http://abuse.easynet.nl/blackholes.html"')dnl
FEATURE(`dnsbl', `blackholes.mail-abuse.org', `"550 Mail from " $`'&{client_addr} " refused - see http://mail-abuse.org"')dnl
FEATURE(`dnsbl', `sbl.spamhaus.org', `"550 Mail from " $`'&{client_addr} " refused - see http://www.spamhaus.org/sbl/"')dnl
FEATURE(`dnsbl', `relays.ordb.org', `"550 Mail from " $`'&{client_addr} " refused - see http://www.ordb.org/faq/\#why_rejected"')dnl

here is some example database dsbl.org , spamcop.net, easynet.nl, mail-abuse.org spamhaus.org , ordb.org

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/sendmail.mc > /etc/mail/sendmail.cf

after editing ur sendmail.mc file

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


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop Spam namit Linux - Software 2 12-08-2005 07:17 AM
How the sendmail stop the Spam mail? goonfui_wong Linux - Networking 6 06-29-2005 10:04 AM
how to stop sendmail spam ? basbosco Linux - Security 2 11-10-2003 02:17 PM
how to stop spam:sendmail nabil Linux - General 6 10-21-2002 10:44 AM
how to stop spam:sendmail nabil Linux - General 3 09-10-2002 07:17 PM


All times are GMT -5. The time now is 06:23 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration