Hi all,
I noticed that I made a mistake with my ifspamh, there is an
if clause in there that caused the script to exit (0) if the
mail was larger than 250k, thus loosing mail. I tried to modify
the script to call vdeliver instead of exiting but this was
flakey so I decided to change the semantics of the script
exit values:
if my ifspamh exists with 99 then it either forwarded or trashed spam,
OR it delivered successfully a clean mail
if it returns 0 then either an error occured or the mail was to large
for spamc (and thus not provided as output from spamc) and qmail
will have to deliver the mail using the next line in the dot-qmail
(without spam scanning)
This provides me with a very good fail-save in case something goes
wrong with the script, the piping or with spamc/spamd.
I have put my current version up at http://lorch.net/nospam/ifspamh
and a sample dot-qmail at http://lorch.net/nospam/sample-dot-qmail
I will test this new version for a couple of days and may make
changes/improvements
Markus
|