Lorenzo Perone wrote: > > I agree, but I don't see an alternative to have this kind of setup, > where mail over a certain threshold is rejected (resulting in > a notification of the user in case it's a false positive, yet > without generating backscatter) and the rest of the spam > delivered, modified, to a user-spam maildir.
Despite the small additional load, IMHO, the best solution is going to be: 1) Use SBL+XBL, 2) scan the message contents during SMTP and reject messages above a relatively high threshold, 3) scan the message again during delivery so that users can have their individual preferences, and add any necessary headers in this phase. >> Well, yes, you can. Obviously you just cannot (even just >> theoretically) >> modify the same message in several different ways. > > If I understood correctly the rest of this thread, > at the moment it is not a good idea to modify the message > even once, within a courierfilter. So it wouldn't be > possible to save a modified copy, which is desired in my > as well as in other setups. You can't modify it, but the technique I use in pythonfilter is to modify the control files to mark all recipients complete, inject a new, modified message into the queue with the same control data, and then tell courier to accept the message. courierd will examine the message from SMTP and remove it because it's already done, and then deliver the modified message that the filter added to the queue. > The only, quite ugly alternative I see here: checking the > message for each recipient within the courierfilter, rejecting > it above a certain threshold, and below it, saving the checked, > modified message copies in a temporary directory, > storing it's ID in a database (for example), and then using > a script in maildrop to "recover" that modified message upon > delivery. But I think such a solution would really be > torturing Sam's work even more ;o I don't think you're going to save any work doing it that way, compared to the strategy I advised above. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
