Yahoo Groups archive

Milter-greylist

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

Thread

Using milter-greylist with Debian Woody

Using milter-greylist with Debian Woody

2004-06-18 by milter-greylist

I builded successfully milter-greylist with Debian Woody for i386 and mips (the SGI Indy was a little bit slow ;-). I have some suggestions for changes to the documentation:
./configure does not find the milter-dev libraries on Debian because it is looking at a subdirectory lib if you configure --with-libmilter. The Debian package libmilter-dev puts the libraries to /usr/lib/libmilter. I worked around this problem by symlinking /usr/lib/libmilter/lib -> /usr/lib/libmilter. I could not find out why configure was not capable to read the path to libmilter-dev from ld.so.conf.
The second problem is the startup script. I wrote a new one following the Debian generic startup template. I added my version to this post.
This is my little documentation for successful building milter-greylist with libspf_alt on Debian Woody running milter-greylist as user smmsp:
# development tools
apt-get install build-essential libmilter-dev libdb3-dev
# sendmail-Sources
cd /usr/src
apt-get source sendmail
mkdir contrib
cd sendmail-8.12.3/
tar xfvz sendmail.8.12.3.tar.gz
cd ../contrib
ln -s ../sendmail-8.12.3/sendmail-8.12.3 ./sendmail
# announce library-Path of libmilter
# add "/usr/lib/libmilter" to /etc/ld.so.conf
ldconfig
# libspf_alt
cd /usr/src
wget http://www.midwestcs.com/spf/libspf-alt/libspf_alt-0.4.0.tar.gz
tar xfvz libspf_alt-0.4.0.tar.gz
cd libspf_alt-0.4.0
./configure --with-user=smmsp
make
make check
make install
# milter-grey
apt-get install bison flex
cd /usr/lib/libmilter
ln -s ./ lib
cd /usr/src
wget ftp://ftp.espci.fr/pub/milter-greylist/milter-greylist-1.4.tgz
md5sum milter-greylist-1.4.tgz
tar xfvz milter-greylist-1.4.tgz
cd milter-greylist-1.4
./configure --with-user=smmsp --with-libmilter=/usr/lib/libmilter --with-libspf_alt=/usr/local
make
make install
# copy the modified startup script for Debian to /etc/init.d/milter-greylist
chmod 540 /etc/init.d/milter-greylist
update-rc.d milter-greylist defaults 19
invoke-rc.d milter-greylist start
# configure milter-greylist /etc/mail/greylist.conf
cd /etc/mail
# add to sendmail.mc (without the first '#'):
# # Milter
# define(`MILTER', 1)
# INPUT_MAIL_FILTER(`greylist',`S=local:/var/milter-greylist/milter-greylist.sock, T=S:10m;R:10m;E:10m')
# define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')
# define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')
# define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')
sendmailconfig
# modify firewallrules as needed (allow tcp 5252 from/to other MX)
Regards!
Daniel
--
SYMPLASSON GmbH | Network Competence Center
Osterstrasse 124 | Tel. +49 40 533071-51
20255 Hamburg, Germany | Fax. +49 40 533071-99
URL: http://www.symplasson.de | mailto:dmelanchthon@...

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.