Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] New IPs of Google mail

2008-05-15 by Michael Mansour

Hi,

> > Is there any compile option needed for milter-greylist 4.1.1 that I need to
> > have the spf checks there?
> 
> You need some version of libspf installed on your system (with devel 
> headers) and the appropriate "--with-libspfXX=YY" option to your 
> ./configure.

I have the libspf2 and libspf2-devel RPM's installed on my servers (RHEL4
based). I use the milter-greylist.spec and add a section in there as:

%define libspf2 1
%{?build_libspf2:%define libspf2 1}

and then further down:

%if %{libspf2}
        --with-libspf2=/usr/lib
%endif

which allows me to use:

rpmbuild -bb milter-greylist.spec

to build the RPM with dnsrbl and spf support.

> For example to compile it on Debian Sarge you need the packages 
> libspf2-0 and libspf2-dev, and the configure option 
> "--with-libspf2_10=/usr/lib".

When building the RPM, I see the:

--enable-dnsrbl
--with-libspf2=/usr/lib

which is part of the line:

+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --with-user=root
--enable-dnsrbl --with-libspf2=/usr/lib

Once I install the RPM and run milter-greylist, the very first message it
processes bombs it out ie. milter-greylist crashes.

When I disable libspf2 support, milter-greylist works fine.

Have no idea why.

Am I correct in defining /usr/lib as the source?

This is what the RPM's have:

# rpm -ql libspf2
/usr/lib/libspf2.so.2
/usr/lib/libspf2.so.2.0.0
/usr/share/doc/libspf2-1.2.5
/usr/share/doc/libspf2-1.2.5/Changelog
/usr/share/doc/libspf2-1.2.5/INSTALL
/usr/share/doc/libspf2-1.2.5/LICENSES
/usr/share/doc/libspf2-1.2.5/README
/usr/share/doc/libspf2-1.2.5/TODO
/usr/share/doc/libspf2-1.2.5/announce_v0.1.txt
/usr/share/doc/libspf2-1.2.5/announce_v0.2.txt
/usr/share/doc/libspf2-1.2.5/announce_v0.3.txt
/usr/share/doc/libspf2-1.2.5/announce_v0.4.txt
/usr/share/doc/libspf2-1.2.5/draft-mengwong-spf-00.txt

# rpm -ql libspf2-devel
/usr/include/spf2/spf.h
/usr/include/spf2/spf_dns.h
/usr/include/spf2/spf_dns_cache.h
/usr/include/spf2/spf_dns_null.h
/usr/include/spf2/spf_dns_resolv.h
/usr/include/spf2/spf_dns_rr.h
/usr/include/spf2/spf_dns_test.h
/usr/include/spf2/spf_dns_zone.h
/usr/include/spf2/spf_lib_version.h
/usr/include/spf2/spf_log.h
/usr/include/spf2/spf_record.h
/usr/include/spf2/spf_request.h
/usr/include/spf2/spf_response.h
/usr/include/spf2/spf_server.h
/usr/lib/libspf2.a
/usr/lib/libspf2.so
/usr/share/doc/libspf2-devel-1.2.5
/usr/share/doc/libspf2-devel-1.2.5/API

Any advice?

> Also take care to increase the milter timeout in your MTA config 
> (see the README), since SPF checks may be time-consuming and default 
> Sendmail timeout is ways too small.

Hmm.. thanks for this tip, if I do end up getting the spf support working,
I'll make sure I do this too.

Michael.

> -- 
> Ce message a ete verifie par MailScanner
> pour des virus ou des polluriels et rien de
> suspect n'a ete trouve.
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
>

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.