Maximum Message Size for Spamfilter Check? |
Post Reply ![]() |
Author | |
mikek ![]() Senior Member ![]() ![]() Joined: 22 February 2005 Location: Switzerland Status: Offline Points: 133 |
![]() ![]() ![]() ![]() ![]() Posted: 10 October 2007 at 3:10am |
I know there is an MaxMsgSizeForKeywordScan option, but is there also a MaximumMsgSizeForQuarantine or MaximumMsgSizeForSpamFiltering?
I my opinion, checking for Spam in Mails > 2 MB could be disabled (until Spammers start sending such big mails...) The problem I'm having is I work with a MySQL Database and there you have to set the "Max Packet Size" to accomodate the largest INSERT into the quarantine that will be possible. Now, with the "emtpy mail with attachments" filter, sometimes very large false positives can't get quarantined because I don't want to set my "Max Packet Size" to 30 MB or more just for these few mails and waste a lot of memory for all other operations. Other thoughts or suggestions or do we have a feature request already? :-) ![]() |
|
![]() |
|
LogSat ![]() Admin Group ![]() ![]() Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
![]() ![]() ![]() ![]() ![]() |
mikek,
This may be a very valid issue you brought up. Are you looking for SpamFilter to: (1) block what it thinks is a spam email larger than 2MB, but not enter it in the quarantine, or.. (2) if an email larger than 2MB arrives that SpamFilter thinks is spam, whitelist it and deliver it, since if it's over 2MB most likely it won't be spam as a spammer won't bother to send sch large emails? |
|
![]() |
|
mikek ![]() Senior Member ![]() ![]() Joined: 22 February 2005 Location: Switzerland Status: Offline Points: 133 |
![]() ![]() ![]() ![]() ![]() |
I would see a feature like a MaximumMsgSizeForSpamFiltering option. If the e-mail is larger than the configured value, only the anti-virus check will be done, but otherwise the mail is forwarded unfiltered.
When we see spammers sending larger mails in the future, the option value can be increased, knowing that the Max Packet Size for MySQL has to be increased to at least that value as well. ![]() |
|
![]() |
|
LogSat ![]() Admin Group ![]() ![]() Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
![]() ![]() ![]() ![]() ![]() |
FYI - We're currently beta testing internally a new build of SpamFilter with the following additions:
// New to VersionNumber = '3.5.4.728'; {TODO -cNew : Added header 'X-SF-Originating-IP' in emails to additionally log the peer IP address} {TODO -cNew : Added option MaxMsgSizeForSpamFiltering in SpamFilter.ini file to whitelist emails that are larger than a specific size} {TODO -cNew : Added option ForwardAllSPAMtoEmailAddress in SpamFilter.ini file to forward all spam emails to an alternate email address} |
|
![]() |
|
mikek ![]() Senior Member ![]() ![]() Joined: 22 February 2005 Location: Switzerland Status: Offline Points: 133 |
![]() ![]() ![]() ![]() ![]() |
Cool, can't wait to get a hold of this new version (I even gave the new option it's name, I'm so proud of myself
![]() ![]() ![]() Edited by mikek - 24 October 2007 at 5:27am |
|
![]() |
|
Thermo ![]() Newbie ![]() Joined: 10 July 2006 Location: Canada Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() |
The default setting is MaxMsgSizeForSpamFiltering=768 is this 768KB? To disable it do we leave it blank like this?
MaxMsgSizeForSpamFiltering= |
|
![]() |
|
LogSat ![]() Admin Group ![]() ![]() Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
![]() ![]() ![]() ![]() ![]() |
mikek, your "baby" is ready for pickup
![]() We uploaded build 728 in the registered user area. As a side-note, by default the value will be: MaxMsgSizeForSpamFiltering=768 The above entry will be automatically created in the SpamFilter.ini file any time the "Save Settings" button is pressed. The 768 is KB. If you have any input on that default value (too high, too low), we'd sure like to hear about it. |
|
![]() |
|
LogSat ![]() Admin Group ![]() ![]() Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
![]() ![]() ![]() ![]() ![]() |
Thermo,
You have a valid point. We need to have an option to disable it, and we do not currently. For now, setting it to something like 1000000 (the value indicates KB, so this would be =1GB) should essentially render it ineffective and practically disable it. |
|
![]() |
|
mikek ![]() Senior Member ![]() ![]() Joined: 22 February 2005 Location: Switzerland Status: Offline Points: 133 |
![]() ![]() ![]() ![]() ![]() |
Hi Roberto,
Great job! Installed and testing... ![]() |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
Roberto, Et Al,
This new setting is fantastic! Saves a lot of False Positives and saves CPU on my server. The default size ... I have a "Spam Trap" address that is tag only and I sorted 19,457 by size. 1 was 190K, 10 fell in between 100K and 190K. The rest are very small. We are using a setting of 200K now and are awaiting the long term results but this setting looks VERY good right now.
|
|
The Desperado
Dan Seligmann. Work: http://www.mags.net Personal: http://www.desperado.com |
|
![]() |
|
LogSat ![]() Admin Group ![]() ![]() Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
![]() ![]() ![]() ![]() ![]() |
mikek is the one to thank, it was his idea :-) !! and a mighty good one too... we're kicking ourselves for not having thought of it on our own!
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.215 seconds.