Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] 2.0.2&2.1.3 with SPF1 & SPF2 crashes

2006-02-22 by manu@netbsd.org

joosteto <joostje@...> wrote:

> I tried to run milter-greylist on my x86-64 system, with libspf.
> 2.0.2 failed with SPF2 (didn't try SPF1)
> 2.1.3 failed with SPF1 and SPF2.

An usual cause of crashes: is your libspf linked against a thread-safe
DNS resolver? 

From the README:
WARNING: milter-greylist is a multithreaded program. The external
functions it uses must be thread-safe. While libspf and libspf_alt
contain only thread-safe code, they use the DNS resolver. By default,
the DNS resolver from libc or libresolv is used. If this resolver 
is not thread-safe, milter-greylist with SPF will quickly crash or
hang.
      
You need to make sure that libspf or libspf_alt are linked against
a thread-safe DNS resolver. For instance, NetBSD-1.6.2 libc-supplied 
resolver is from BIND 4, and it is not thread safe. In order to get
a stable milter-greylist, you need to link with a BIND 8.2 or higher
resolver.
  
When building with libspf_alt-0.4, you might encounter problems if
libbind is only available as a static library. It seems to be the
default with BIND 8, which causes troubles. BIND 9 is fine.

-- 
Emmanuel Dreyfus
Un bouquin en français sur BSD:
http://www.eyrolles.com/Informatique/Livre/9782212114638/livre-bsd.php
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.