First thanks Gord for the idea, and the starting point and feedback. Now that the kinks are out I'll publish it here for any it might help and explain the reasoning.
SpamAssassin has a variety of black hole tests which it applies to the Received headers. Recent versions are supposed to ignore all but the FIRST header, and only test others... So if you are an adsl home users, as long as you relay THROUGH your SMTP server, you should be fine - but, it fails to address local sends between users, and also, due to a bug: http://bugzilla.spamassassin.org/show_bug.cgi?id=2906 it fails to properly identify courier Received headers, which componds the problem. As an interrum fix, I wanted a way to bypass spamassassin if a locally authenticated user is sending the message to a local user on my system. To do this, I have to test the FIRST Received header and see if it is an AUTH'd user - if so, I bypass spamc: i=1 foreach /Received: .*/ { #echo ASDF4 #echo $MATCH #note echo sends to syslog - good for debugging! if ( $i == 1 && ( ! ($MATCH =~ /Received: .*\(AUTH: [^)]*\) *by /))) { xfilter "/usr/bin/spamc -U /var/run/spamassassin.sock -u $UI_Email" } i=$i+1 } I'll add it to the bug report as a work around in the meantime. Thanks to all. m/ ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users