免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5285 | 回复: 2
打印 上一主题 下一主题

[FreeBSD] -分享-FreeBSD邮件服务Postfix问题:“fatal: open database /etc/aliases.db” [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-17 00:20 |只看该作者 |倒序浏览
前几天自己的电脑老是出一个提示,后来看一篇介绍弄好了。现在把解决方法弄出来供大家参看。

FreeBSD邮件服务Postfix问题:“fatal: open database /etc/aliases.db”

FreeBSD邮件服务Postfix问题:"fatal: open database /etc/aliases.db"
http://www.liulantao.com/blogs/liulantao/ [Mon Feb 4 18:43:54 CST 2008]

E: What does "fatal: open database /etc/aliases.db" mean?
C: "fatal: open database /etc/aliases.db" 意味着什么?

E: DB files are maintained by the Berkeley DB library. The above
message means one of the following things:
C: DB数据库文件由Berkeley DB链接库维护。以上的消息意味着以下的几种情况之一:
E: * The existing file does not have the expected file format. The
cause is one of the following:
C: 已存在的文件没有期望的文件格式。原因为以下情况之一:
E: o The file was created by Berkeley DB version 1 and you
are using version 2 or 3 (or vice versa).
C: 此文件由Berkeley DB版本1所创建,而你正在使用版本2或3(反之亦然)。
E: o The file was written in "btree" format and Postfix
expects "hash" format (or vice versa).
C: 文件以"btree"格式写就,而Postfix需要"hash"格式(反之亦然)。
E: To fix the problem for Postfix execute the following command as root:
C: 欲为Postfix修正此问题,以root用户运行以下命令:
newaliases
E: This creates the aliases.db in the format that Postfix expects.
C: 这将以Postfix所期望的格式创建aliases.db。

E: * Or the problem could be something completely different. If
the result of running newaliases is a zero-length aliases.db file,
then you probably suffer from the following problem.
C: 或许问题恰好完全相反。如果运行newaliases的结果是一个空aliases.db文件,那么你可能遇到的是以下的问题。
E: o Postfix was compiled with #include files for Berkeley
DB version X and was linked against object library files for Berkeley
DB version Y, where X and Y are different versions of the Berkeley DB
library.
C: Postfix编译时包含了Berkeley DB版本X的文件,而为Berkeley
DB版本Y链接为目标库文件,而X与Y为Berkeley DB的不同版本。
E: The fix for this is to properly install the Berkeley DB
library. For example, RedHat version 7.0 uses the Berkeley DB version
3 object library by default, but no /usr/include/db.h file is
installed by default. In order to correctly build Postfix you must
install the db3-devel package.
C: 解决此问题的方法是适当的安装Berkeley DB库。例如,Redhat版本7.0默认使用了Berkeley DB
版本3的目标库,却没有默认安装/usr/include/db.h文件。为了正确的建立Postfix,你必须安装db3-devel文件包。
E: On a properly installed system, including the file <db.h> and
linking with -ldb should access files from the same Berkeley DB
library version.
C: 在一个适当安装好的系统中,包含文件<db.h>并且链接以-ldb选项将会利用Berkeley DB相同版本的库文件。

参考位置:http://www.postfix.org/faq.html#noalias

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
2 [报告]
发表于 2008-03-17 08:17 |只看该作者
用着那么烦?
# cd /usr/local/etc/postfix
# postalias aliases
再把main.cf里的修改一下就OK.
alias_maps = hash:/usr/local/etc/postfix/aliases

论坛徽章:
0
3 [报告]
发表于 2008-04-16 13:47 |只看该作者
这是从那边翻译过来的。其实也只是一个命令
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP