Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling 8.12.10 w/ milter fails 1

Status
Not open for further replies.

Rhinokiller

IS-IT--Management
May 20, 2003
223
US
Has anyone seen this b4 ?
I am compiling 8.12.10 from source (using sh Build -c) and I need to include support for Milter. Below is my site.config.m4 to include Milter in the build:

dnl Milter
APPENDDEF(`conf_sendmail_ENVDEF',`-D_FFR_MILTER=1')
APPENDDEF(`conf_libmilter_ENVDEF',`-D_FFR_MILTER=1')

Here is a snap-shot of the build

cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o main.o main.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o alias.o alias.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o arpadate.o arpadate.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o bf.o bf.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o collect.o collect.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o conf.o conf.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o control.o control.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o convtime.o convtime.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o daemon.o daemon.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o deliver.o deliver.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o domain.o domain.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o envelope.o envelope.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o err.o err.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o headers.o headers.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o macro.o macro.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o map.o map.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o mci.o mci.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o milter.o milter.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o mime.o mime.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o parseaddr.o parseaddr.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o queue.o queue.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o readcf.o readcf.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o recipient.o recipient.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o sasl.o sasl.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o savemail.o savemail.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o sfsasl.o sfsasl.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o shmticklib.o shmticklib.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o sm_resolve.o sm_resolve.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o srvrsmtp.o srvrsmtp.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o stab.o stab.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o stats.o stats.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o sysexits.o sysexits.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o timers.o timers.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o tls.o tls.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o trace.o trace.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o udb.o udb.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o usersmtp.o usersmtp.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o util.o util.c
cc -O2 -I. -I../../include -DNEWDB -D_FFR_MILTER=1 -c -o version.o version.c

After running sh Build install, if I check to see what sendmail comiled with, Milter is not listed ???

[root@RHL Site]# /usr/sbin/sendmail -bt -d0.4 < /dev/null
Version 8.12.10
Compiled with: DNSMAP LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND
NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG

Any ideas anyone ?

Cogito Ergo Sum - Non Compos Mentis
 
Which milter are you using.

Here are tips I have:

1) Be sure you are putting your m4 config file in the right place for your server.

(This is in mine at ../Src/sendmail-8.12.10/devtools/Site/site.config.m4)

APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')

2) The milter I use also requires I edit the sendmail.mc file and reconfigure. This is what I have had to add to my .mc file:

define(`_FFR_MILTER', `true')INPUT_MAIL_FILTER(`f-prot-milter',`S=local:/var/run/f-prot.sock,F=T,T=S:300s;R:300s;E:5m')

3) I had to recompile the binaries for sendmail. Then rebuild my sendmail.cf after the binaries had been rebuilt. (I only had to to this when using a milter for the first time. I have since switched to several different milters. Changing the .mc and recompiling .cf is sufficient after sendmail binaries are rebuilt).

Good Luck.
 
Thanks Dan ... It's working now.

Cogito Ergo Sum - Non Compos Mentis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top