bugSpamAssassin Milter Plugin - Bugs: bug #21046, Avoid filtering on SMTP auth

 
 

bug #21046: Avoid filtering on SMTP auth

Submitter:  Stuart <schneis>
Submitted:  Wed 12 Sep 2007 09:18:33 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  kovert
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 15 Aug 2014 02:07:39 AM UTC, comment #1: 

freebsd patch incorporated into cvs.

Todd Kover <kovert>
Group administrator
Wed 12 Sep 2007 09:18:33 AM UTC, original submission:  

Email from users who relay using SMTP auth are being scanned and tagged by SpamAssassin.  Currently spamass-milter does not do anything with the authentication information available for milters.

There is a patch available for FreeBSD which adds a command-line argument to skip scanning on authentication at:
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2006-November/106024.html

An alternative patch would be something like (which would allow the creation of an SA rule to score an authentication message):
* spamass-milter.cpp.orig     Wed Sep 12 01:27:55 2007
--- spamass-milter.cpp  Wed Sep 12 02:07:59 2007
*************
* 997,1002 **
--- 997,1009 ----
                        warnmacro("_", "ENVRCPT");
                }

+ const char *auth_type = smfi_getsymval(ctx, "{auth_type}");
+ const char *auth_id = smfi_getsymval(ctx, "{auth_authen}");
+ if (auth_type)
+ {
+       assassin->output((string)"X-Authenticated: user "+auth_id+" by "+auth_type+" on "+macro_j+"\r\n");
+ }
+
                assassin->output((string)"X-Envelope-From: "+assassin->from()+"\r\n");
                assassin->output((string)"X-Envelope-To: "+envrcpt[0]+"\r\n");


Can either of these patches, or something like them, be incorporated into the official source?

Thanks!

Stuart <schneis>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by kovert (Posted a comment)
  • -email is unavailable- added by schneis (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-11 kovert StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2014-08-15 kovert StatusNone Ready For Test
        Assigned toNone kovert

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code