Figured it out. Operator error.
My variable declarations weren't right. Sheesh ... never thought I'd be a source of spam :( -----Original Message----- From: [email protected] [mailto:[email protected]]on Behalf Of Cliff Hayes Sent: Wednesday, September 30, 2009 3:31 PM To: [email protected] Subject: [Mimedefang] FW: FW: stream_by_recipient beginner I think I've found the problem but I've never seen anything like it so I don't know how to solve it. The code below from mimedefang-filter sets the values for $hits, $req, $names, $report. Debug1a shows the values are set properly. But just a few lines later, Debug1c shoes the values are blank! How could that be? I believe that is what is causing my problem. CODE: if (-s "./INPUTMSG" < 100*1024) { $overSizeFlag = 0; my($hits, $req, $names, $report) = spam_assassin_check(); my($score); $afoDateTime = localtime time; open logFile, ">>/scripts/mdf.log" or die "unable to open mdf.log -- $!"; print logFile ("$afoDateTime Debug1a $hits, $req, $names \n"); close logFile; if ($hits < 40) { $score = "*" x int($hits); } else { $score = "*" x 40; } } else { $afoDateTime = localtime time; open logFile, ">>/scripts/mdf.log" or die "unable to open mdf.log -- $!"; print logFile ("$afoDateTime Debug1b $hits, $req, $names \n"); close logFile; my($hits) = 0; $overSizeFlag = 1; my($names) = "OverSizeLimit"; my($req) = 0; my($report) = ""; my($score) = 0; } $afoDateTime = localtime time; open logFile, ">>/scripts/mdf.log" or die "unable to open mdf.log -- $!"; print logFile ("$afoDateTime Debug1c $hits, $req, $names \n"); close logFile; DEBUG LOG OUTPUT: Wed Sep 30 15:25:02 2009 Debug1a 4.803, 2, AWL,BAYES_00,SPF_PASS Wed Sep 30 15:25:02 2009 Debug1c , , Thanks in advance, Cliff -----Original Message----- From: [email protected] [mailto:[email protected]]on Behalf Of Cliff Hayes Sent: Wednesday, September 30, 2009 2:15 PM To: [email protected] Subject: Re: [Mimedefang] FW: stream_by_recipient beginner Thanks! Making progress. I deployed my shiney new mimedefang-filter with stream_by_recipient. I used a sample spam with multiple addressees. I notice that it processes the original mail, drops it, creates copies, and 8 seconds later I see the inividual copies start to appear in the logs. I get these errors: Sep 30 13:57:57 sadev mimedefang-multiplexor[19560]: Slave 0 stderr: Use of uninitialized value $str in substitution (s///) at /usr/bin/mimedefang.pl line 359. Sep 30 13:57:57 sadev mimedefang-multiplexor[19560]: Slave 0 stderr: Use of uninitialized value $arg2 in concatenation (.) or string at /usr/bin/mimedefang.pl line 512. Thanks in advance, Cliff -----Original Message----- From: [email protected] [mailto:[email protected]]on Behalf Of David F. Skoll Sent: Wednesday, September 30, 2009 9:56 AM To: [email protected] Subject: Re: [Mimedefang] FW: stream_by_recipient beginner Cliff Hayes wrote: > 1) all multiple-recipient mail now goes to the clientmqueue instead of the > mqueue and just sits there until I run a sendmail -L sm-msp-queue -Ac -q ... > I have a Fedora system ... since I can't run the command constantly, how do > I teach sendmail to keep flushing the clientmqueue? On Fedora, you can reduce the clientmqueue interval by adding this line to /etc/sysconfig/sendmail: SMQUEUE=1m and restarting Sendmail. (Use whatever interval you're comfortable with if 1m is too short or too long.) > 2) the mail in the clientmqueue is clearly spam but is no longer being > flagged as spam. My debug logs are showing that the mail is being run > through all the tests and many tests are coming back positive but no score > is being assigned. Must be a filter bug. Regards, David. _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

