Postfix:错误:不支持的字典类型:mysql


13

我有后缀问题

问题:

# tail -f /var/log/mail.err
Aug 20 17:57:50 myserver postfix/smtpd[8243]: error: unsupported dictionary type: mysql
Aug 20 17:57:50 myserver postfix/smtpd[8243]: error: unsupported dictionary type: mysql
Aug 20 17:58:05 myserver postfix/smtpd[8244]: error: unsupported dictionary type: mysql
Aug 20 17:58:05 myserver postfix/smtpd[8244]: error: unsupported dictionary type: mysql
Aug 20 18:00:38 myserver postfix/smtpd[8277]: error: unsupported dictionary type: mysql
Aug 20 18:00:38 myserver postfix/smtpd[8277]: error: unsupported dictionary type: mysql
Aug 20 18:03:32 myserver postfix/smtpd[8320]: error: unsupported dictionary type: mysql
Aug 20 18:03:32 myserver postfix/smtpd[8320]: error: unsupported dictionary type: mysql
Aug 20 18:03:33 myserver postfix/trivial-rewrite[8322]: error: unsupported dictionary type: mysql
Aug 20 18:03:33 myserver postfix/trivial-rewrite[8322]: error: unsupported dictionary type: mysql

理念?


关于pcre几乎重复的问题:serverfault.com/q/972173/250204
anx

Answers:


15

[已解决]这为我在Ubuntu 14.04中解决了该问题:

sudo apt-get install postfix-mysql

8
  1. 检查的输出postconf -m。它看起来像这样:

    root@ds94:/usr/local/etc/postfix # postconf -m
    btree
    cidr
    environ
    fail
    hash
    internal
    memcache
    mysql
    pcre
    proxy
    regexp
    socketmap
    static
    tcp
    texthash
    unix
    
  2. 如果在postconf的输出中没有mysql字符串,则表示在没有mysql支持的情况下构建了postfix。要解决它,请安装postfix-mysql软件包。


1

检查是否已安装: dpkg -s postfix-mysql

如果没有安装 sudo apt-get -y install postfix-mysql

问题解决了。


5
有趣的是,我已经安装了该错误,但仍然存在该错误
John
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.