libspf2 breaks Postfix under FreeBSD4

Marcus Grando marcus at corp.grupos.com.br
Tue Mar 29 19:12:37 PST 2005


Hi,

If you need libspf2 in postfix try this:

#cd /usr/ports/mail/libspf2
#make configure

Edit work/libspf2-1.0.4/src/libspf2/Makefile and remove 
getopt_long_only$U.o and getopt_long_only$U.lo

#make all deinstall install clean

After that reinstall postfix with SPF.

I think that solve your problem.

After ports freeze, i submit new patch to upgrade libspf2 to 1.2.5.

Regards

Lefteris Tsintjelis wrote:
> I have already looked at similar pages without much luck.
> 
> http://readlist.com/lists/postfix.org/postfix-users/4/20359.html
> 
> Without SPF (works OK):
> # ldd /usr/local/sbin/postfix
> /usr/local/sbin/postfix:
>         libssl.so.3 => /usr/lib/libssl.so.3 (0x48075000)
>         libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x480a5000)
>         libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x481a5000)
>         libc.so.4 => /usr/lib/libc.so.4 (0x481b1000)
> 
> With SPF (broken):
> # ldd /usr/local/sbin/postfix
> /usr/local/sbin/postfix:
>         libspf2.so.1 => /usr/local/lib/libspf2.so.1 (0x48075000)
>         libssl.so.3 => /usr/lib/libssl.so.3 (0x4808c000)
>         libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x480bc000)
>         libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x481bc000)
>         libc.so.4 => /usr/lib/libc.so.4 (0x481c8000)
> 
> Seems like either libspf2 or libc is broken because there is no 
> other library other than the libspf2 that is compiled with.
> Unfortunately that goes beyond my knowledge.
> 
> Marcus Grando wrote:
> 
>>Please look:
>>http://groups.google.com/groups?q=pipe+getopt&hl=pt-BR&lr=&group=mailing.postfix.users&selm=ci0amd%247k8%241%40FreeBSD.csie.NCTU.edu.tw&rnum=2
>>
>>Try to use mail/policyd for check SPF in this case.
> 
> 
> I have used that but the code is pretty broken. specially with
> IPv6 support. I was hoping libspf would have some of those problems
> resolved.
> 
> 
>>Regards

-- 
Marcus Grando
Grupos Internet S/A
marcus(at)corp.grupos.com.br


More information about the freebsd-ports mailing list