Postfix

後綴:錯誤:不支持的字典類型:mysql

  • February 24, 2021

我有後綴的問題

問題:

# 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

主意?

**$$ SOLVED $$**這在 Ubuntu 14.04 中為我解決了這個問題:

sudo apt-get install postfix-mysql
  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
  1. 如果在 postconf 的輸出中沒有mysql字元串,則意味著 postfix 是在沒有 mysql 支持的情況下建構的。要解決它安裝postfix-mysql包。

引用自:https://serverfault.com/questions/622796