Go Back   StrafeRight Forums > StrafeRight Community Forums > General Community Discussion > PC Hardware And Software
New Posts Calendar Xbox Live Leaderboard Arcade Members List

PC Hardware And Software Discussion About PC Hardware And Software

 
 
LinkBack Thread Tools
  #1 (permalink)  
Old 09-03-2008, 11:44 AM
Dopefish's Avatar
ALTMAN BE PRAISED
 
Join Date: Apr 2006
Location: Ohio
Posts: 4,015
Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!
Send a message via AIM to Dopefish Send a message via MSN to Dopefish
Mail, Anti-Spam, and Statistics

I set up a pretty nice e-mail server with great spam filtering. I'm wondering what everyone else uses and what are their results with it?

Currently my setup is pretty complex, but it works great.
The links for all the software I use are located at the very bottom of this post.

I am using Postfix as the SMTP server. You can only send e-mails if you authenticate, and only if it's over SSL. This forces everything to be encrypted between you and the server.

For IMAP, I use Dovecot. Again, you can only access e-mails over SSL so everything is encrypted.

I have it set up so both of those use MySQL to store all their information and to use virtual users.

Postfix is set up with blacklist databases that it checks against to even decide whether to accept new connections or not. There's a bunch of other things I use in in the configuration file that help deny attackers.

I use Postgrey for greylisting. What this does is deny the first connection attempt for 60 second (you can adjust the time). This alone will stop 99% of the spam. The reason is that attackers who send spam use a script or sorts that will only connect once to try to send the spam. If the connection is denied, then they just move on to the next address and never try again. However, all authentic, real mail servers will retry after a specific amount of time. I think GMail tries again after 5 or 10 minutes. So it basically denies the first connection and accepts anything after that.

From here, I use DSPAM. DSPAM does all the spam calculation and filtering. It analyzes everything in the email from the headers to the end of the message. It weighs everything in the email and if it goes above a certain number, it flags it as spam and quarantines it. From here, you can go to the awesome web interface and look through quarantined emails and past history on emails. From this interface, you can also retrain any email to be either spam or innocent. It's incredibly powerful.

For a virus scanner, I have DSPAM call ClamAV on each new email and it scans for a virus. There's really not much else to that part.


I tallied up all the statistics for the month of August to see just how well my setup did.

Code:
Grand Totals
------------
messages

    220   received
    220   delivered
      0   forwarded
      0   deferred
      0   bounced
   1872   rejected (89%)
    298   reject warnings
      0   held
      0   discarded (0%)
I received a total of 220 emails for the month of August. All 220 were valid; none of the emails were spam.

89% of the emails were rejected before they even got to DSPAM. You don't have to worry about any of these being a false-positive since these are attempts at bypassing standards or using it as a relay.

The 298 that were rejected with a warning were still spam. The only difference is that they met most of the requirements but were denied for a specific reason. You can view these warnings in the log to see why they were rejected. You don't have to worry about these being false-positives either for the same reasons mentioned previously.

As for actual false-positives that don't make it to your inbox, they will be quarantined. You simply go to the web interface and check the quarantine. If something is there that's good, you just click to have it delivered and it will drop it in your inbox immediately. It's an extremely powerful tool to have.





Here are links to everything I use:
The Postfix Home Page - SMTP server
SourceForge.net: Postfix Admin - Web interface for virtual users
MySQL :: The world's most popular open source database - Database for virtual users
Dovecot - IMAP/POP3 server
Postgrey - Postfix Greylisting Policy Server - Grey-listing service
Nuclear Elephant: The DSPAM Project - Spam filtering
JIMSUN - Postfix Contribs - Creates a summary of the mail logs
__________________

Last edited by Dopefish; 09-03-2008 at 02:14 PM.
Reply With Quote
  #2 (permalink)  
Old 09-03-2008, 01:49 PM
Teck's Avatar
The Tux
 
Join Date: Nov 2004
Location: I Live At StrafeRight
Posts: 8,581
Teck pwns more than FPS Doug!Teck pwns more than FPS Doug!Teck pwns more than FPS Doug!Teck pwns more than FPS Doug!Teck pwns more than FPS Doug!Teck pwns more than FPS Doug!Teck pwns more than FPS Doug!
I would be interested in seeing over a year period if you get any spam in your Inbox...
__________________

Quote:
Originally Posted by VincentVega
Teck will be working on God's forum
Quote:
Originally Posted by DanFortH View Post
...and I like killing zombies

and Cap'n Crunch. you put those two together and you've got one LETHAL-ASS good time combo
Reply With Quote
  #3 (permalink)  
Old 09-03-2008, 01:51 PM
BuddhistSoldier's Avatar
om mani padme hum
 
Join Date: Feb 2006
Location: All over Canada
Posts: 1,033
BuddhistSoldier pwns more than FPS Doug!BuddhistSoldier pwns more than FPS Doug!BuddhistSoldier pwns more than FPS Doug!
I use gmail... filters over 50 spam a day on average.
__________________
If at first you don't succeed, you fail. - Portal
I could stick some RAM in that if you know what I mean! - Teck

Reply With Quote
  #4 (permalink)  
Old 09-03-2008, 02:08 PM
Dopefish's Avatar
ALTMAN BE PRAISED
 
Join Date: Apr 2006
Location: Ohio
Posts: 4,015
Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!
Send a message via AIM to Dopefish Send a message via MSN to Dopefish
Buddhist, the problem with GMail is that spam gets through constantly. Sure, they redirect the obvious ones to the Spam folder, which I don't like at all. I'd rather just have them delete it entirely. The rest of the stuff I have to create filters for. I have about 40 filters set up to stop spam with GMail.

You have to consider that GMail is widely used. They don't have the resources to run the constant spam filtering and virus scanning that you can when you run your own email server.


Anyway, that's 2,390 pieces of mail I received without getting one single piece of spam. I think with this setup, I should get less than 10 spam emails a year. There are some files you can get that have a ton of emails in them that contain both spam and innocent emails. There's two main files and each have over 2,000 in them. You run the DSPAM trainer on them when you first set it up and you have a powerful, smart filtering system set up from the start.


I'm going to update the first post with links. I had meant to originally but I forgot.
__________________
Reply With Quote
  #5 (permalink)  
Old 09-03-2008, 02:45 PM
panic!'s Avatar
He punched out all my blood!
 
Join Date: Jun 2006
Location: Winston-Salem
Posts: 1,332
gXboxLive Leaderboard: 43rd
panic! pwns more than FPS Doug!panic! pwns more than FPS Doug!panic! pwns more than FPS Doug!
Send a message via ICQ to panic! Send a message via AIM to panic! Send a message via MSN to panic! Send a message via Yahoo to panic!
I don't mind gmails spam filtering. One may get through every now and then, but deleting one manually isn't such a hassle.
__________________
Reply With Quote
  #6 (permalink)  
Old 09-03-2008, 03:39 PM
Dukefrukem's Avatar
The Sky is Over
 
Join Date: Jul 2004
Location: Boston
Posts: 15,945
gXboxLive Leaderboard: 89th
Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.Dukefrukem is Pro.
Send a message via ICQ to Dukefrukem Send a message via AIM to Dukefrukem Send a message via MSN to Dukefrukem Send a message via Yahoo to Dukefrukem Send a message via Skype™ to Dukefrukem
Quote:
Originally Posted by BuddhistSoldier View Post
I use gmail... filters over 50 spam a day on average.
gmail ftw. but no way i get that much spam.
__________________
Reply With Quote
  #7 (permalink)  
Old 09-03-2008, 04:06 PM
Dopefish's Avatar
ALTMAN BE PRAISED
 
Join Date: Apr 2006
Location: Ohio
Posts: 4,015
Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!
Send a message via AIM to Dopefish Send a message via MSN to Dopefish
My spam directory gets about 120/day in it.
About 20-30/day get filtered to the trash automatically with the filters I set up.

I still like my solution on imk.cx more.
__________________
Reply With Quote
  #8 (permalink)  
Old 10-02-2008, 09:27 AM
Dopefish's Avatar
ALTMAN BE PRAISED
 
Join Date: Apr 2006
Location: Ohio
Posts: 4,015
Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!Dopefish pwns more than FPS Doug!
Send a message via AIM to Dopefish Send a message via MSN to Dopefish
It's been another month so I thought I'd update this with more statistics.

Month of September:
Code:
Grand Totals
------------
messages

    135   received
    135   delivered
      0   forwarded
      1   deferred  (1  deferrals)
      0   bounced
   1660   rejected (92%)
    381   reject warnings
      0   held
      0   discarded (0%)

August + September combined:
Code:
Grand Totals
------------
messages

    355   received
    355   delivered
      0   forwarded
      1   deferred  (1  deferrals)
      0   bounced
   3532   rejected (90%)
    679   reject warnings
      0   held
      0   discarded (0%)

Still not one piece of spam made it through and zero missed e-mails.
__________________
Reply With Quote
  #9 (permalink)  
Old 10-02-2008, 10:24 AM
joe's Avatar
joe joe is offline
.:. plageclochard
 
Join Date: Nov 2004
Location: Delawhere?
Posts: 3,473
joe pwns more than FPS Doug!joe pwns more than FPS Doug!joe pwns more than FPS Doug!joe pwns more than FPS Doug!joe pwns more than FPS Doug!joe pwns more than FPS Doug!joe pwns more than FPS Doug!
Send a message via AIM to joe Send a message via MSN to joe Send a message via Yahoo to joe
Nice!
__________________
...damn pirates stole my computer
Reply With Quote
  #10 (permalink)  
Old 10-09-2008, 12:55 AM
Pale.Rider's Avatar
PWRDWNSYS
 
Join Date: Oct 2006
Location: Davy Crockett Land
Posts: 1,012
Pale.Rider pwns more than FPS Doug!Pale.Rider pwns more than FPS Doug!Pale.Rider pwns more than FPS Doug!Pale.Rider pwns more than FPS Doug!Pale.Rider pwns more than FPS Doug!Pale.Rider pwns more than FPS Doug!Pale.Rider pwns more than FPS Doug!Pale.Rider pwns more than FPS Doug!
Send a message via ICQ to Pale.Rider
I have used a number of solutions in a corporate environment ranging from dedicated Barracuda devices to elaborate software packages like MailMarshal.

The last time I recall seeing any statistics something like 95% of the mail we were getting at the time was spam, close to 50 million messages a week, that was just for my division though.

Also that looks like a nice setup Dope! I need to do something like that for home.
__________________
Reply With Quote
Reply

Tags
dovecot, mail, postfix, spam

Thread Tools



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySpace Wins $230mill. Anti-Spam Suit Gargs PC/Console Hardware & Software News 6 05-17-2008 03:33 PM
Nintendo Releases Global Wii Console Sales Statistics Craig PC/Console Hardware & Software News 3 04-28-2008 10:25 PM
Problem closing windows mail ThePro PC Hardware And Software 5 03-19-2008 02:26 AM
Spam and Disrespect/nade spam Razor CS:Source Server Admin Assistance 3 11-14-2006 10:24 PM

Mortgage insurance | Electricity Suppliers | Power Tools | Libros de historia | Personal Injury Attorney Los Angeles