Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

shockme (2685)

shockme
  reversethis-{gro.dnuowtixe} {ta} {kcohs}
http://exitwound.org/
AOL IM: stephenhargrove (Add Buddy, Send Message)

If you really must have more information about me, see my home node [perlmonks.org] at PerlMonks [perlmonks.org] or my journal [exitwound.org] at exitwound.org.

Journal of shockme (2685)

Monday September 23, 2002
11:17 AM

SpamAssassin Semi-Joy

[ #7932 ]
Well, after a little further research, I discovered a cockpit error in the spamd restart script. I'm trying to restart sendmail, spam-ass milter, and spamd every hour. I placed all of the restart calls in a bash script, and cron'd it like so:

* 1 * * * /home/stephen/bin/restartSendmail.sh

Yep, that runs every morning at 1:00 whether I want it to or not. Changing it to 0 * * * * fixed that. spamd still hangs, but the restart script is correcting it in a more timely fashion now. I hate that this is even necessary. It's ugly.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Have you tried just running spamassassin though procmail?
    :0fw
    | spamassassin -P
    As I only get This might work better than using a milter, as I recall they are broken in several versions of sendmail (the one that comes with 7.3 and I use anyway).

    • Surely you mean spamc / spamd?

      -Dom

    • A system-wide procmail was recommended by a friend the other day. I think it's a good idea. At any rate, it can't be possibly be worse than the existing solution. (Okay, okay ... things can always get worse ...)

      As soon as my workload subsides this week (yeah, right), I'll definitely be looking into it.

      --

      If things get any worse, I'll have to ask you to stop helping me.

    • Not quite sure what happened to that post. It was supposed to be something like:

      As I only get <50 emails a day. On our work server we get a couple of thousand and have had good results with spamc/spamd (just replace 'spamassassin -P' with 'spamc').

  • * 1 * * * /home/stephen/bin/restartSendmail.sh
    Uh, that runs at every minute (60 times total) during 1am. Do you really need to restart Sendmail that much? {grin}
    --
    • Randal L. Schwartz
    • Stonehenge
    • Oh. Right. Heh. Either way, it's completely not what I wanted. But it does explain the huge drop in SPAM received between 1am and 2am. ;)
      --

      If things get any worse, I'll have to ask you to stop helping me.

  • If it's performance you're worried about, try PPerl (from CPAN) for running /usr/bin/spamassassin instead. It'll be a little slower than spamd (for various reasons I won't go into), but you won't have the startup overhead of the perl compilation every time.