On Wednesday 08 March 2006 21:30, Tristan Miller wrote: >Greetings. > >I use Fetchmail to fetch mail from various POP3 and IMAP accounts and >Procmail to pipe the retrieved mail through SpamAssassin (using > spamd). This works fine, except that the first few messages fetched > after booting don't seem to get processed by SpamAssassin. This > means I end up with about a half-dozen spam mails in my inbox every > time I start up my machine after it's been off for a few hours. > >I suspect the problem is that my system loads the Fetchmail daemon > first, and then the SpamAssassin daemon a few seconds later; in the > few seconds that Fetchmail runs, it manages to download a dozen or so > messages and pipes them to spamc, which can't connect to spamd and so > passes the message through unchanged. > >I thought the solution would be simply to use the -t argument to spamc > to give it more time to connect to the spamd daemon. However, when I > tried disabling spamd and then running > >cat some-email.txt | spamc -t x > >from the command line, spamc didn't wait any longer no matter what > value of x I used; it just waited for a second and then spit out > some-email.txt as-is. Ditto when using the -x option. > >Am I doing anything wrong? Is there something besides fiddling with > spamc arguments I can use to make sure fetchmail doesn't start > running until spamd has started up? (I am running SuSE 9.3.) > >Regards, >Tristan
Here, I don't recall that being a problem. spamassassin (spamd) is started in /etc/rc3.d as S80spamd, well before S99local is run, which is where I start fetchmail. You might want to setup similar sequencing. -- Cheers, Gene People having trouble with vz bouncing email to me should add the word 'online' between the 'verizon', and the dot which bypasses vz's stupid bounce rules. I do use spamassassin too. :-) Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2006 by Maurice Eugene Heskett, all rights reserved.