Print Page | Close Window

stats

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=1625
Printed Date: 22 February 2025 at 5:37pm


Topic: stats
Posted By: Guests
Subject: stats
Date Posted: 06 August 2003 at 8:42am

Can the stats of emails (forwarded, blocked, attempts etc...) be sorted out by domain? also can some domains be quarantined and some not?

thanks




Replies:
Posted By: Desperado
Date Posted: 06 August 2003 at 11:50pm

AJ,

Second issue first.  Are you asking about source domain or destination domain?  And what build are you running?

First Issue.  If you are using ASP code to manage the quarantine, you can do almost anything with the quarantine.  If you want actual traffic statistics to be sorted, you need to parse the log files and what I am doing (not totally finished writing) is re-writing the logs into an SQL DB and using the same ASP code to sort things out.

As an example, the following SQL Statements will return the domain part of a from address that you can later sort on using a normal ordering command like   order_By = "Domain, MsgDate, EmailTo, Subject, RejectDetails"

NOTE: The variable "SearchQuery"  in this case is looking for a partial match in the from field.  I then decide how long a period I want to look at ... 1 hour 24 hours etc

SQL = "SELECT SUBSTRING(EmailFrom, CHARINDEX('@', EmailFrom) + 1, 100) "
SQL = SQL & "AS Domain, QuarID, EmailFrom, Subject, MsgDate, MsgID, RejectDesc, RejectDetails, EmailTo "
SQL = SQL & "FROM tblQuarantine, tblRejectCodes "
SQL = SQL & "WHERE EmailFrom LIKE '%" + Replace(SearchQuery, "'", "''") + "%' "
SQL = SQL & "AND (Deliver <> 1) "
SQL = SQL & "AND (Expire <> 1) "
SQL = SQL & "AND (tblQuarantine.RejectID = tblRejectCodes.RejectID) "
If SearchSpan = 1 Then
SQL = SQL & "AND (MsgDate >= DATEADD(hour,-1,getdate())) "
End If
If SearchSpan = 4 Then
SQL = SQL & "AND (MsgDate >= DATEADD(hour,-4,getdate())) "
End If
If SearchSpan = 8 Then
SQL = SQL & "AND (MsgDate >= DATEADD(hour,-8,getdate())) "
End If
If SearchSpan = 24 Then
SQL = SQL & "AND (MsgDate >= DATEADD(hour,-24,getdate())) "
End If
SQL = SQL & "ORDER BY " & order_By
Set rs = con.Execute(SQL)
RecordCount = rs.RecordCount

This, I believe, will work with access also but my design plan still has to parse the logs into the database and it is a fair amount of work for a non db guy like myself.

Regards,
Dan S. (Just a user)



Posted By: Guests
Date Posted: 09 August 2003 at 10:34am

Thanks for the reply!  on the second issue we would like to quarantine some of the destination domains and some not.  (we're using V 1.2.0.190)

On the first issue:  we want to sort the stats but we're not sending the messages to quarantine, we're just rejecting them.  Do you know if the sender gets an undeliverable notification when the email is quarantined?  we like the "rejection mode" cause when its a false positive the sender gets an "undeliverable" notification.

 

 



Posted By: Desperado
Date Posted: 11 August 2003 at 1:41pm

AJ,

I will get the answer to the rejection notification .... I have a note on that issue but need to find it.

On the Quarantining of some domains but not others: .... That has not been implemented YET.  It may or may not be in the future ... 

Dan S.

 



Posted By: Guests
Date Posted: 11 August 2003 at 2:46pm
Seems to me that if there is a domain that you don't want filtered for spam, don't list it in the local domains list and just leave the MX record for that domain pointing to the SMTP server instead of the SpamFilter server.


Posted By: Desperado
Date Posted: 12 August 2003 at 1:30am

AJ,

The sender WILL get a reject notification under all conditions.

Dan S.




Print Page | Close Window