Hi Jaroslav,
thanks for your howto.
I forced myself to give it a try on less important machine.
Unfortunately during "make":
rm -f tryltai.o tryltai
./compile base64.c
./compile chkuser.c
./load qmail-smtpd chkuser.o qregex.o rcpthosts.o commands.o timeoutread.o \
timeoutwrite.o ip.o ipme.o ipalloc.o strsalloc.o control.o
control_time.o time.o \
constmap.o tls.o ssl_timeoutio.o ndelay.a -L/usr/local/ssl/lib -lssl
-lcrypto \
received.o date822fmt.o now.o qmail.o spf.o spam.o spam_get.o
cdb.a fd.a wait.a \
datetime.a getln.a open.a sig.a case.a env.a stralloc.a \
alloc.a strerr.a substdio.a error.a str.a fs.a auto_qmail.o
auto_uids.o base64.o `cat \
socket.lib tai.lib dns.lib` dns.o lock.a `head -1
/home/vpopmail/etc/lib_deps`
./compile qmail-envelope-scanner.c
./compile local_scan.c
./load qmail-envelope-scanner -lz -lm local_scan.o
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.a(client.o): In function
`mysql_close_free_options':
(.text+0xa08): undefined reference to `SSL_CTX_free'
/usr/lib/mysql/libmysqlclient.a(client.o): In function
`mysql_get_ssl_cipher':
(.text+0xc56): undefined reference to `SSL_get_current_cipher'
/usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_real_connect':
(.text+0x2786): undefined reference to `SSL_get_peer_certificate'
/usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_real_connect':
(.text+0x2798): undefined reference to `X509_get_subject_name'
/usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_real_connect':
(.text+0x27ad): undefined reference to `X509_NAME_oneline'
/usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_real_connect':
(.text+0x27b5): undefined reference to `X509_free'
/usr/lib/mysql/libmysqlclient.a(client.o): In function
`mysql_get_ssl_cipher':
.........................
/usr/lib/mysql/libmysqlclient.a(viosslfactories.o): In function
`new_VioSSLConnectorFd':
(.text+0x349): undefined reference to `SSL_CTX_set_verify'
collect2: ld returned 1 exit status
make: *** [qmail-envelope-scanner] Error 1
And yes mysql was compiled with ssl support.
Where could be problem?
Regards,
Roman
Jaroslav napsal(a):
> Hello,
> my mini-howTO
>
> hope it helps:
>
> cd /var/src
> cp -rp netqmail-1.05 netqmail-1.05_org
> cd netqmail-1.05/netqmail-1.05
> wget http://shupp.org/patches/greylisting-20060105.patch
> <http://shupp.org/patches/greylisting-20060105.patch>
> #maybe change BLOCK_EXPIRE ?
> patch < greylisting-20060105.patch
> make clean
> make
>
> ########### creating Database
> CREATE DATABASE relaydelay;
> grant select,insert,update,delete on relaydelay.* to
> milter@"localhost" identified by 'milter';
> flush privileges;
>
> mysql -umilter -pmilter < dbdef.sql
> ##############################
>
>
> qmailctl stop
> make setup check
> chown -R vpopmail:vchkpw /var/qmail/spam
> qmailctl start
>
>