|
|
Create an online spam trap counter
iordonez, I use the Exim mail server instead of Postfix, so I don't know if this directly relates. But Exim has a conf file that you have to edit to have Exim call Spamassassin. In my instance we use a MySQL database to store email accout info, and so Exim is also making calls to that. In the rule that Exim uses to decide if an email is spam, I added another call to MySQL that increments a column by one (if it's spam). It looks like this:
deny message = Spam score too high ($spam_score)
condition = ${if >{$acl_m1}{0}{1}{0}}
condition = ${if {$spam_score_int}{$acl_m1}{1}{0}}
set acl_m3 = ${lookup mysql{UPDATE spam set spamcount=spamcount+1}}
The last line is the relevant one; this statement appears in the acl_check_content section of the config file. If you're using Exim, don't copy my code verbatim because much of it relates to our customizations of Exim and Spamassassin-- you're on your own there. If you want to set up Exim & Spamassassin, visit afp548.com for articles on this (not affiliated, just found their articles very helpful).To do this I had to add a new table to the MySQL email user database, but it's a table with only one column. I guess I could write to text file, but this was easier to do. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|