Roland <[EMAIL PROTECTED]> wrote: > It should be localmailfilter(7), once also known as 'whitelist api'. > Its especially supported by but not limited to Maildrop at all. > > The simple api allows to fork something executable after every RCPT TO > and DATA and reject the message at this point - and its one of the main > reasons why I use courier for incoming mails here. > > The additional load compared to the persistent courierperlfilter which > is somewhat picky with the declaration of variables should not be a > problem unless there are multiple incoming mails per second.
<shameless-plug> Courier::Filter[1], an alternative courierfilter implementation, does not have any variable declaration picky-ness, and is very easy to extend. It's meant as a replacement for the perlfilter that comes with Courier. </shameless-plug> > [...] > By using localmailfilter instead of courierperlfilter to launch > spamassassin (or spamc) you trade some cpu for simplicity since every > invocation gets a fresh perl interpreter without hidden gotchas. Very true. If you want to use SpamAssassin, you definitely should not start a `spamassassin` process (as opposed to `spamc`) for each message -- the overhead is huge. > Both implementations have the same limitations: no access to the values > of HELO or RCPT TO as given by the client (Sam promised this some time > ago) and no possiblity to modify content or insert custom headers (the > later may be patched away) Uhm, with "both implementations", do you mean "localmailfilter and courierfilters"? This does not apply to courierfilters. A courierfilter very well does have access to a message's queue control file, which contains the HELO string and all envelope recipients. Courier::Filter makes use of that. It's true that messages cannot be modified before delivery (i.e. when dot-courier files are processed), though. [1] http://search.cpan.org/~jmehnle/Courier-Filter-0.101/ ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
