patchSpamAssassin Milter Plugin - Patches: patch #3372, Adds -R flag to allow for external...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

patch #3372: Adds -R flag to allow for external program to filter recipients

Submitted by:  Joe Maimon <jmaimon>
Submitted on:  Mon Sep 20 17:48:15 2004  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: Dan Nelson <dnelson>Open/Closed: Open

Tue Sep 21 22:10:25 2004, comment #2:

I had not approached it that way because I was looking for something which would allow me to centralize the configuration in sendmail. I am trying to avoid configuring any user specific information into spamasassin at this point.

I figured that being able to decide not to launch any spamassassin activity would be cleaner.

The cost here is the spawning of the external filter (which can do anything, so thats pretty flexible).

The example script I showed potentialy launches 1 editmap query for the full email address, an additional editmap query for each part of the domain name (e.g. my.local.host.com, local.host.com, host.com, com), 1 editmap query for the localpart (user@) and one more editmap query for the Spam: tag alone (can be used to provide default behavior).

This is an average of 5 editmap queries against the sendmail access.db. According to my (this is a modest sub Ghz dual proc with 25000-30000+ connections daily) syslog debug entries, this all happens in under a second.

On this system, a normal processing of a message is almost never less than 2 seconds, average of 3-4.

The new version of the patch is still running happily since I installed it yesterday on my system.

I have an untested version of the patch against CVS.

Joe Maimon <jmaimon>
Tue Sep 21 20:25:41 2004, comment #1:

Does this give a measureable speed increase? I would have expected that using "all_spam_to" lines in local.cf would cause the score to go negative fast enough that SA would shortcut the rest of the checks. I can't imagine anything raising the score back up to a level where it would get tagged, so SA really should just exit. I was sure I seen something in the SA mailinglist about this, but can't find it now.

Dan Nelson <dnelson>
Project AdministratorIn charge of this item.
Mon Sep 20 17:48:15 2004, original submission:

IF all recipients are filtered, the milter will cease processing of the email.

Patch is rough and uses the system(3) call.
Uses debug flag D_RCPT

patches are against 0.2.0
supplied is patch for debian package

Also supplied is a shell script to illustrate filtering out recipients who are Spam: friend in sendmail access.

Joe

Joe Maimon <jmaimon>

 

Attached Files
file #8414:  Rcpt-Filter.030-bBrActions.v10.patch added by jmaimon (14kB - application/octet-stream - This adds -R and loop detection to 0.3 patched with bBrsActions patch #3513)
file #8413:  Rcpt-Filter.020-CVS.v9.patch added by jmaimon (13kB - application/octet-stream - Latest -R patch, fixed -R handling when no headers, includes loop prevention and -r negation and some fixes. Applies against current CVS.)
file #7900:  Rcpt-Filter.jm-2-CVS.v6.patch added by jmaimon (10kB - application/octet-stream - Latest -R patch, with bucket address loop prevention and -r negation)
file #7886:  Rcpt-Filter.jm-2-CVS.v3.patch added by jmaimon (8kB - application/octet-stream - v3 of patch geared for CVS version....I ran this AOK for half a day.)
file #7874:  Rcpt-Filter.jm.2.patch added by jmaimon (7kB - application/octet-stream - Version 2 of patch, applies agains 0.2.0)
file #7872:  spamass-milter-rcpt-filter.sh added by jmaimon (559B - application/octet-stream)
file #7871:  Rcpt-Filter.jm-Debian.patch added by jmaimon (5kB - application/octet-stream)
file #7870:  Rcpt-Filter.jm.patch added by jmaimon (5kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 10 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue Feb 15 15:44:11 2005jmaimonAttached File-=>Added Rcpt-Filter.030-bBrActions.v10.patch, #4184
Tue Feb 15 13:31:21 2005jmaimonAttached File-=>Added Rcpt-Filter.020-CVS.v9.patch, #4183
Mon Sep 27 13:32:25 2004jmaimonAttached File-=>Added Rcpt-Filter.jm-2-CVS.v6.patch, #3705
Wed Sep 22 19:48:47 2004jmaimonAttached File-=>Added Rcpt-Filter.jm-2-CVS.v3.patch, #3691
Tue Sep 21 20:25:41 2004dnelsonPriority1 - Later=>5 - Normal
  Assigned toNone=>dnelson
Tue Sep 21 12:45:44 2004jmaimonAttached File-=>Added Rcpt-Filter.jm.2.patch, #3679
Mon Sep 20 17:49:30 2004jmaimonAttached File-=>Added spamass-milter-rcpt-filter.sh, #3677
Mon Sep 20 17:48:43 2004jmaimonAttached File-=>Added Rcpt-Filter.jm-Debian.patch, #3676
Mon Sep 20 17:48:15 2004jmaimonAttached File-=>Added Rcpt-Filter.jm.patch, #3675

Back to the top


Powered by Savane 3.1-cleanup