[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sendmail and libmilter



The alternative to test, of course, was a "straight" build
from sendmail.org's version.  With no disappreciation
meant to Todd and crew, the OBSD one wasn't setup for
milter, so there are OBSD-specific changes  to make to
the OBSD specific Makefiles.

Good patch.  Only change I'd offer is making it rely on
a mk.conf variable like "SMMILTER=YES" and putting it
into the main code branch.

That said, I'm not sure what the state of threading is on
various machines, so I'm not entirely sure what the state of
milters on will be (relies on threading pretty heavily).

Will it work on OBSD/Sparc where threading was iffy, last
I looked?

Quoting JurekP (jurekpd@wp.pl):
> > Starting from the latest 3.1 patch branch:
> Step 1 to 3 Install patch (Thanks to Francesco Toscan)
> > Step 4) cd gnu/usr.sbin/sendmail; make obj && make depend && make install
> > Step 5) restart sendmail
> > Step 6) try to send mail
> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/src/gnu/usr.sbin/sendmail/Makefile,v
> retrieving revision 1.5
> diff -u -r1.5 Makefile
> --- Makefile 2002/07/20 17:30:26 1.5
> +++ Makefile 2002/07/27 11:56:49
> @@ -11,7 +11,7 @@
>  .endif
> 
>  # The bits we install
> -SUBDIR+=sendmail mailstats makemap praliases smrsh editmap cf/cf
> +SUBDIR+=sendmail mailstats makemap praliases smrsh editmap cf/cf libmilter
> libsm libsmutil
> 
>  # Extra bits we don't build/install right now
>  #SUBDIR+= libmilter mail.local rmail vacation
> Index: Makefile.inc
> ===================================================================
> RCS file: /cvs/src/gnu/usr.sbin/sendmail/Makefile.inc,v
> retrieving revision 1.10
> diff -u -r1.10 Makefile.inc
> --- Makefile.inc 2002/07/20 17:30:26 1.10
> +++ Makefile.inc 2002/07/27 11:56:49
> @@ -7,7 +7,7 @@
>  ENVDEF+=-DSM_OMIT_BOGUS_WARNINGS
>  .endif
>  ENVDEF+= -DNEWDB -DMAP_REGEX
> -ENVDEF+= -DNETINET6 -DNEEDSGETIPNODE -DSM_CONF_SHM
> +ENVDEF+= -DNETINET6 -DNEEDSGETIPNODE -DSM_CONF_SHM -DMILTER
>  .if (${YP:L} == "yes")
>  ENVDEF+=-DNIS
>  .endif
> Index: libmilter/Makefile
> ===================================================================
> RCS file: /cvs/src/gnu/usr.sbin/sendmail/libmilter/Makefile,v
> retrieving revision 1.4
> diff -u -r1.4 Makefile
> --- libmilter/Makefile 2002/01/14 03:21:40 1.4
> +++ libmilter/Makefile 2002/07/27 11:56:50
> @@ -3,7 +3,7 @@
>  LIB=  milter
>  SRCS=  main.c engine.c listener.c handler.c comm.c smfi.c signal.c \
>    sm_gethost.c errstring.c strl.c
> -CPPFLAGS+= -pthread -Dsm_snprintf=snprintf
> +CPPFLAGS+= -pthread -Dsm_snprintf=snprintf -D_FFR_MILTER_ROOT_UNSAFE
>  .PATH:  ${.CURDIR}/../libsm
> 
>  # This is not a library that gets installed so only build the .a version