|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mlist.only
free.fr)
Date: Tue Sep 04 2007 - 15:45:32 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ronald F. Guilmette wrote:
> In message <20070903193047.4AF311F3EA1
spike.porcupine.org>,
> wietse
porcupine.org (Wietse Venema) wrote:
>
>> Ronald F. Guilmette:
>>> Just for the sake of my edification, could you please also tell me
>>> _why_ a Postfix milter has to be thread safe?
>> There is no such thing as a Postfix Milter.
>>
>> Your milter application runs on top of libmilter.
>
> Well, that sort-of begs the question... What if it _didn't_ run on
> top of libmilter? What if it skipped that and tried to interface
> to Postfix smtpd directly? Would my milter still have to be
> thread-safe under that scenario?
>
> (Please forgive me for making such an issue of this, but it really
> would be a major pain in the ass to make what I have in mind thread-
> safe. A significant part of the problem with doing that... but
> certainly not the only problem... is that the spam filter that I'd
> like to turn into a milter does DNS lookups. Sadly, I am not aware
> of any thread-safe DNS primitives library, so I kind-of think that
> I'd be stuck trying to write my own, from scratch. Am I just looking
> in the Wrong Places? Does anybody here happen to know of a reasonably
> priced thread-safe DNS primitives library?)
>
are you confusing thread-safe with asynchronous?
from milter-greylist README file:
===
If your resolver is not thread safe, install BIND9, and use
--with-libbind. If you know your resolver is thread-safe but
configure tells otherwise (because you lack the res_ninit() function),
then use --with-thread-safe-resolver.
If you install BIND9, make sure it includes libbind.a, since this is
what milter-greylist needs. libbind.a is not created in BIND9 default
build setup, so you might not have it in a precompiled package. If you
cannot find a package that contains libbind.a, then you have to rebuild
BIND9 from sources, using the --enable-libbind
flag to BIND9's configure.
===
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]