To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Misc Tools

Misc Tools Discussion regarding tools that don't have their own forum.

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-19-2003, 03:58 AM   #1
rahulroy
Junior Member
 
Join Date: Mar 2003
Posts: 21
Sendmail & Spam Filtering

Hi,

I am running a mail server for a community, my server receives lot of spam, which results in thousands of emails in mail queue as the senders use dummy emails.

I am using Sendmail on Linux Red Hat 7.2, want to know how to stop spam strom on my server, thanks.
rahulroy is offline   Reply With Quote
Old 06-29-2003, 04:51 AM   #2
kurfuerst
Junior Member
 
Join Date: Aug 2002
Location: Saxony, Germany
Posts: 3
I have done it the following way:

Hello,
I have used spamassassin: http://spamassassin.org/
At first, you have to install it.
After that, you have to have procmail on your server, else you have to find another way...
But if you have it installed, you have to locate the system-wide procmailrc and insert the following code:
#############BEGIN##################
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamassassin
##################END###############

Then, every mail is passed through spamassassin.
Now you can configure spamassassin in /etc/mail/spamassassin/local.cf .
I have inserted the following there:

required_hits 6.0
rewrite_subject 1
subject_tag ***SPAM: score _HITS_ **




Every mail gets scored with spamassassin... If the score is higher as required_hits, the mail is marked as spam...
The other config options assure that every spam-mail gets a ***SPAM: score*** in its subject...

Hope that helps....

Sebastian
kurfuerst is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 11:14 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.