免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: marion
打印 上一主题 下一主题

[Mail] RHEL4上安装基于postfix的全功能邮件服务器(全部使用目前最新源码包构建) [复制链接]

论坛徽章:
0
561 [报告]
发表于 2008-03-10 18:27 |只看该作者

BerkeleyDB needs compatible versions of libdb & db.h

原帖由 falalala 于 2008-1-22 15:53 发表
Problem in Amavis:B or Amavis:B::SNMP code:
BerkeleyDB needs compatible versions of libdb & db.h
        you have db.h version 4.5.20 and libdb version 4.2.52
Compilation failed in require at (eval 92) line 15.
BEGIN failed--compilation aborted at (eval 92) line 15.





我也遇到同样的问题 原因是系统中有不同版本的BerkeleyDB 解决方法如下:

在安装BerkeleyDB perl模块的时候  我用的是cpan自动安装  出错  因此到cpan.org下载一个手动编译安装

修改config.in文件中  lib 和 include的路径  重新编译安装 通过



官方原文:


Incompatible versions of db.h and libdb
---------------------------------------

BerkeleyDB seems to have built correctly, but you get an error like this
when you run the test harness:

  $ make test
  PERL_DL_NONLAZY=1 /home/paul/perl/install/bin/perl5.00503
  -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/i586-linux
  -I/usr/local/lib/perl5/5.00503 -e 'use Test::Harness qw(&runtests $verbose);
  $verbose=0; runtests @ARGV;' t/*.t
  t/btree.............
  BerkeleyDB needs compatible versions of libdb & db.h
          you have db.h version 2.6.4 and libdb version 2.7.5
  BEGIN failed--compilation aborted at t/btree.t line 25.
  dubious
        Test returned status 255 (wstat 65280, 0xff00)
  ...        

Another variation on the theme of having two versions of Berkeley DB on
your system.

Solution: Setting the LIB & INCLUDE variables in config.in to point to the
          correct directories can sometimes be enough to fix this
          problem. If that doesn't work the easiest way to fix the
          problem is to either delete or temporarily rename the copies
          of db.h and libdb.a that you don't want BerkeleyDB to use.
          If you are running Linux, please read the Linux Notes section below.

论坛徽章:
0
562 [报告]
发表于 2008-03-10 21:37 |只看该作者
# spamassassin -d --lint
[10857] warn: config: failed to parse line, skipping, in "/etc/mail/spamassassin/local.cf": rewrite_subject 1
[10857] warn: lint: 1 issues detected, please rerun with debug enabled for more information
我用的SpamAssassin3.2.3

这个错误怎么调试?哪出错了呢?有没有和我遇到一样错误的呢?

论坛徽章:
0
563 [报告]
发表于 2008-03-11 09:54 |只看该作者
"/etc/mail/spamassassin/local.cf":
rewrite_subject 1 这个选项有问题,注掉它试试

论坛徽章:
0
564 [报告]
发表于 2008-03-12 10:17 |只看该作者
恩,注释掉就可以了。
但是柳兄,能解释下rewrite_subject 1的意思吗?我不用它会有什么问题吗?
它是不是和后面的配置rewrite_header Subject *****SPAM***** 相关联。是不是检测邮件标题的选项,去掉是不是会使过滤垃圾邮件主题出现问题?

[ 本帖最后由 yh81521 于 2008-3-12 10:21 编辑 ]

论坛徽章:
0
565 [报告]
发表于 2008-03-12 11:13 |只看该作者
rewrite_subject 1 这个选项成立时,
rewrite_header Subject *****SPAM*****  这个选项才起作用,它是用来修改标题的


资料上是这么说的,我没法验证,因为我自己装的系统就没法启用rewrite_subject 1,可能跟一些perl模块有关,可是我也不知道跟哪个模块有关,所有spamassassin需要的perl模块我都安装并进行升级了。

不启用这个选项暂时没发现什么不良影响,垃圾邮件过滤效果还不错。

论坛徽章:
0
566 [报告]
发表于 2008-03-12 14:32 |只看该作者
谢谢柳兄解答,那我就放心了,呵呵。。。

论坛徽章:
0
567 [报告]
发表于 2008-03-14 14:24 |只看该作者

回复 #558 jiayong277 的帖子

你讲的再清楚一些或许有助于其他人帮你判断问题所在。

论坛徽章:
0
568 [报告]
发表于 2008-03-14 22:47 |只看该作者
我安装的时候忘记了删除sendmail,装好后都成功了才记起没删除,然后运行rpm -e sendmail --nodeps删除
删除后进webmail正常,但发送邮件时出错,显示Send fail, return code -1
maillog显示错误为
Mar 14 22:43:07 mailserver postfix/smtpd[25662]: fatal: open database /etc/aliases.db: No such file or directory
Mar 14 22:43:08 mailserver postfix/master[25628]: warning: process /usr/local/postfix/sbin/smtpd pid 25662 exit status 1
Mar 14 22:43:08 mailserver postfix/master[25628]: warning: /usr/local/postfix/sbin/smtpd: bad command startup -- throttling
请问老大应该如何修复?
我重新执行newaliases 提示 error while loading shared libraries: libmysqlclient.so.14;cannot open shared object file: No such file or directory
我装了 Mysqlclient 后可以运行newaliases,但还是不能发邮件。
错误日志如下
Mar 15 00:32:23 mailserver pop3d: LOGOUT, user=lmz@XXX.cn, ip=[218.14.*.*], top=0, retr=0, rcvd=12, sent=39, time=0
Mar 15 00:34:58 mailserver postfix/anvil[26078]: statistics: max connection rate 1/60s for (smtp:70.23.207.224) at Mar 15 00:26:26
Mar 15 00:34:58 mailserver postfix/anvil[26078]: statistics: max connection count 1 for (smtp:70.23.207.224) at Mar 15 00:26:26
Mar 15 00:34:58 mailserver postfix/anvil[26078]: statistics: max cache size 2 at Mar 15 00:28:50

[ 本帖最后由 lminz 于 2008-3-15 00:37 编辑 ]

论坛徽章:
0
569 [报告]
发表于 2008-03-16 08:43 |只看该作者

回复 #567 lminz 的帖子

在一定程度上讲,postfix的目的是为了取代Sendmail,因此,postfix的许多程序和文件都同Sendmail同名,postfix安装完成后再删除sendmail会导致什么,我想这个不难猜到。

论坛徽章:
0
570 [报告]
发表于 2008-03-16 22:19 |只看该作者
原帖由 marion 于 2008-3-16 08:43 发表
在一定程度上讲,postfix的目的是为了取代Sendmail,因此,postfix的许多程序和文件都同Sendmail同名,postfix安装完成后再删除sendmail会导致什么,我想这个不难猜到。

老大,有啥办法不?要重新安装一次?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP