后缀:不支持的字典类型:texthash

das*_*cht 1 email email-server postfix

我在我的服务器上安装了 Postfix,并像在运行 ubuntu 机器上一样对其进行了配置。

我添加了一个映射来将发件人地址(我必须这样做,因为我使用 mailjet.com 作为出站邮件服务器)到 main.cf

smtp_generic_maps=texthash:/etc/postfix/generic
Run Code Online (Sandbox Code Playgroud)

通用文件如下所示

root@physical1  physical1@mydomain.com
Run Code Online (Sandbox Code Playgroud)

当我重新启动 postfix 时,我在系统日志中收到以下错误消息

Jan 12 23:51:04 physical1 postfix/smtp[26902]: fatal: dict_open: 
unsupported dictionary type: texthash:  Is the postfix-texthash package installed?
Run Code Online (Sandbox Code Playgroud)

有没有人知道为什么会这样?我搜索了是否有 postfix-texthash 包,但我没有找到

更新

postconf -m
btree
cidr
environ
hash
internal
nis
proxy
regexp
sdbm
static
tcp
unix
Run Code Online (Sandbox Code Playgroud)

后缀版本:2.7.1-1+squeeze1

Jam*_*man 5

您正在运行 Postfix 2.7 版。texthash在 Postfix 2.8 中引入了新postscreen服务器:http : //www.postfix.org/POSTSCREEN_README.html

正如 SvenW 建议的那样,您最好只使用hash:和运行postmap文件。