Damn! I should have RTFM! Okay, I'm showing my inexperience here...
Firstly, thanks a lot Jared! Good to know this option exists. Also, thanks to Henrik. I guess this would have been the easiest option since apparently ShortCircuit.pm didn't exist. Now, for the small fiasco... When I ran a spamassassin -V, it showed the debian package 3.1.7-deb (latest on etch.) Since that version was less than 3.2x I got a little wreckless and did: # cpan install loadplugin Mail::SpamAssassin::Plugin::Shortcircuit Of course, in the process of upgrading dependences, SpamAssassin also was updated. Now a version check shows: SpamAssassin version 3.2.5 running on Perl version 5.8.8 All seems to be running fine except for several errors on reload: spamd[892]: plugin: eval failed: Can't locate object method "set_spamd_result_item" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Shortcircuit.pm line 293, <GEN903> line 60. Now this probably has something to do with the fact that according to email logs, sendmail is still firing up the old version. Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.1.7-deb. Now, I checked and spamd which /etc/init.d/spamassassin calls returns version 3.2.5 as well. Not sure why that header saying 3.1.7-deb is still coming through. Of course the short-circuiting isn't working :) So, I commented out the plugin line. Then I added my local networks to /etc/defaults/spamass-milter. I saw no Shortcircuit.pm errors and furthermore, no headers from mail that originates from a host in that network range. Thanks for all your help. Brett Millett -----Original Message----- From: Henrik K [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 10:27 PM To: users@spamassassin.apache.org Subject: Re: Bypass locally relayed email On Mon, Sep 08, 2008 at 09:18:38PM -0600, Brett Millett wrote: > > I was hoping to completely bypass spamassassin for mail originating in the > local ip range or at least strip those emails of any spam checking > headers. Any ideas how to accomplish this? > > The mail server is running Debian with Sendmail, spamassassin milter, > and spamassassin configured site-wide. The milter is accessed via > sendmail.mc line: > > INPUT_MAIL_FILTER(`spamassassin',`S=local:/var/run/sendmail/spamass.sock > , F=,T=S:4m;R:4m;E:10m')dnl man spamass-milter -i networks Ignores messages if the originating IP is in the network(s) listed. The message will be passed through without calling Spa- mAssassin at all. networks is a comma-separated list, where each element can be either an IP address (nnn.nnn.nnn.nnn), a CIDR network (nnn.nnn.nnn.nnn/nn), or a network/netmask pair (nnn.nnn.nnn.nnn/nnn.nnn.nnn.nnn). Multiple -i flags will append to the list. For example, if you list all your internal net- works, no outgoing emails will be filtered.