Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5376331
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2006-08-19 14:10:10

今天换了好几个软件包,感觉不枉自己的苦心了,现在把自己装各软件的感受写出来。
服务器的安装我就不说了,因为网上也很多,我只想说说我升级的情况。
custom.patch  greylisting-20060105.patch  qmail-toaster-0.8.3.patch  qmail-toaster-0.8-tap1.patch
这几个包的安装情况,
开始装qmail-toaster-0.8.3.patch 后装greylisting-20060105.patch其中要修改这里的面设置
BLOCK_EXPIRE  (default: 55   /* minutes until email is accepted */)
默认为55分钟,太久了,我现在改成了4分钟,这里的东西进数据库中就可以看到的。然后在数据库中要加入
CREATE DATABASE relaydelay;
grant select,insert,update,delete tables on relaydelay.* to " identified by 'milter';

USE relaydelay;
后找到数据库文件。
mysql -uroot -ppassword < dbdef.sql
 
OK这就装好了。
 
我在安装时碰到了一个错误
 
在make中
./load qmail-envelope-scanner -lz -lm local_scan.o /usr/lib/libmysqlclient.a
/usr/lib/libmysqlclient.a(client.o)(.text+0x1515): In function `mysql_close_free_options':
: undefined reference to `SSL_CTX_free'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x34): In function `report_errors':
: undefined reference to `ERR_get_error_line_data'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x79): In function `vio_ssl_read':
: undefined reference to `SSL_read'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x9a): In function `vio_ssl_read':
: undefined reference to `SSL_get_error'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0xce): In function `vio_ssl_write':
: undefined reference to `SSL_write'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x29f): In function `vio_ssl_close':
: undefined reference to `SSL_shutdown'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x2af): In function `vio_ssl_close':
: undefined reference to `SSL_free'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x3e4): In function `sslaccept':
: undefined reference to `SSL_new'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x446): In function `sslaccept':
: undefined reference to `SSL_clear'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x454): In function `sslaccept':
: undefined reference to `SSL_get_session'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x463): In function `sslaccept':
: undefined reference to `SSL_SESSION_set_timeout'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x477): In function `sslaccept':
: undefined reference to `SSL_set_fd'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x485): In function `sslaccept':
: undefined reference to `SSL_set_accept_state'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x493): In function `sslaccept':
: undefined reference to `SSL_do_handshake'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x4ac): In function `sslaccept':
: undefined reference to `SSL_free'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x529): In function `sslconnect':
: undefined reference to `SSL_new'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x585): In function `sslconnect':
: undefined reference to `SSL_clear'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x593): In function `sslconnect':
: undefined reference to `SSL_get_session'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x5a2): In function `sslconnect':
: undefined reference to `SSL_SESSION_set_timeout'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x5b6): In function `sslconnect':
: undefined reference to `SSL_set_fd'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x5c4): In function `sslconnect':
: undefined reference to `SSL_set_connect_state'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x5d2): In function `sslconnect':
: undefined reference to `SSL_do_handshake'
/usr/lib/libmysqlclient.a(viossl.o)(.text+0x5eb): In function `sslconnect':
: undefined reference to `SSL_free'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x8): In function `get_dh512':
: undefined reference to `DH_new'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x2a): In function `get_dh512':
: undefined reference to `BN_bin2bn'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x49): In function `get_dh512':
: undefined reference to `BN_bin2bn'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x5f): In function `get_dh512':
: undefined reference to `DH_free'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x92): In function `report_errors':
: undefined reference to `ERR_get_error_line_data'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0xc6): In function `vio_set_cert_stuff':
: undefined reference to `SSL_CTX_use_certificate_file'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0xe6): In function `vio_set_cert_stuff':
: undefined reference to `SSL_CTX_use_PrivateKey_file'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0xf2): In function `vio_set_cert_stuff':
: undefined reference to `SSL_CTX_check_private_key'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x11d): In function `vio_set_cert_stuff':
: undefined reference to `SSL_CTX_use_PrivateKey_file'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x153): In function `vio_set_cert_stuff':
: undefined reference to `ERR_print_errors_fp'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x1b7): In function `vio_set_cert_stuff':
: undefined reference to `ERR_print_errors_fp'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x1df): In function `vio_verify_callback':
: undefined reference to `X509_STORE_CTX_get_current_cert'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x1e9): In function `vio_verify_callback':
: undefined reference to `X509_STORE_CTX_get_error'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x1f1): In function `vio_verify_callback':
: undefined reference to `X509_STORE_CTX_get_error_depth'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x205): In function `vio_verify_callback':
: undefined reference to `X509_get_subject_name'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x219): In function `vio_verify_callback':
: undefined reference to `X509_NAME_oneline'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x267): In function `vio_verify_callback':
: undefined reference to `X509_get_issuer_name'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x27b): In function `vio_verify_callback':
: undefined reference to `X509_NAME_oneline'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x2df): In function `new_VioSSLConnectorFd':
: undefined reference to `TLSv1_client_method'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x2ea): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_CTX_new'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x306): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_CTX_set_cipher_list'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x320): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_CTX_set_verify'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x34d): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_CTX_load_verify_locations'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x376): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_CTX_ctrl'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x37e): In function `new_VioSSLConnectorFd':
: undefined reference to `DH_free'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x391): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_CTX_set_default_verify_paths'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x3b7): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_load_error_strings'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x3c8): In function `new_VioSSLConnectorFd':
: undefined reference to `SSL_library_init'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x3cd): In function `new_VioSSLConnectorFd':
: undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x422): In function `new_VioSSLAcceptorFd':
: undefined reference to `TLSv1_server_method'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x42d): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_new'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x449): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_set_cipher_list'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x46b): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_ctrl'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x485): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_set_verify'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x49e): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_set_session_id_context'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x4cb): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_load_verify_locations'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x4f4): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_ctrl'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x4fc): In function `new_VioSSLAcceptorFd':
: undefined reference to `DH_free'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x50f): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_CTX_set_default_verify_paths'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x535): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_load_error_strings'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x546): In function `new_VioSSLAcceptorFd':
: undefined reference to `SSL_library_init'
/usr/lib/libmysqlclient.a(viosslfactories.o)(.text+0x54b): In function `new_VioSSLAcceptorFd':
: undefined reference to `OPENSSL_add_all_algorithms_noconf'
collect2: ld returned 1 exit status
make: *** [qmail-envelope-scanner] Error 1
这个好介是openssl有问题。要修改文件conf-ld
原为cc -s
改为cc -s -lssl
这样就可以编译过去了。
OK现在可以放心使用了
不过那个数据库要修改一下,要把正常的邮件服务器加进白名单,这样正常邮件进来的速度会快很多。至于怎么加,可以参考那个文件dbdef.sql
阅读(1718) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~