Thanks everyone for the replies. Is there a good known site to learn more about maildrop scripts?
Thanks Robert > At 01:48 PM 10/22/2004, Robert Bartlett wrote: >>Currently I use a maildrop script that checks the score given to the >> email >>by SA and if it reaches a certain number or greater it gets sent to a >>different mailbox. >> >>My question is could you do that instead in SA local.cf > > Others have pointed out that maildrop or procmail might be better. > > However, I felt I should at least point out that it is *impossible* to do > this with SA... > > SA is just a piped message filter, it's not a delivery agent. It has no > concept of mailboxes, or mail delivery. It doesn't even have access to the > message envelope, so it doesn't always know who a message is being > delivered to (unless it can guess from the headers). It can no more > replace > your maildrop script than it can replace your MTA. > > SA's capabilities are strictly limited to editing the message. It cannot > (on it's own) delete, redirect, bounce or whatever else you might want to > do to alter message delivery, because it has no access to the delivery > envelope. All SA can do is rewrite the headers and body, or use a return > code from it's execution, and let other tools alter delivery based on > that. > > While this is a bit of a limit on SA's capabilities, there's tons of tools > (like procmail) which do delivery filtering very well. Adding delivery to > SA is re-inventing the wheel for the sole purpose of creating a "kitchen > sink" application. Leaving it out keeps SA simple and lets the developers > focus on doing spam filtering well, not wasting time globing on a bad > rewrite of procmail. > > Leave the "kitchen sink" approach to discount windows "business suite" > applications and infomercial kitchen gadgets. I'd rather have a tool that > does one job well, instead of a tool that does 50 jobs poorly. (It slices, > it dices, it makes julienne fries, it even makes great coleslaw and fresh > salsa! all for three easy payments of just $9.99!) > > > > >