大网数据广告活动
服务器运维问答

postfix newaliases - mysql does not support bulk-mode creation

· 52CE 我爱测

As the title implies, I am getting this error whenever I am trying to run newaliases . First, a bit of explanation. I was trying to do an upgrade on my debian server from jessie to stretch, and I almost got all packages upgraded,…

问题原文

原帖链接 · cellsheet · CC BY-SA 3.0

As the title implies, I am getting this error whenever I am trying to run newaliases. First, a bit of explanation. I was trying to do an upgrade on my debian server from jessie to stretch, and I almost got all packages upgraded, minus postfix and postfix-mysql. Also, in the upgrade mysql was replaced with mariadb. I'm not sure if this is problematic, but whenever I try to re-run the upgrade to re-configure postfix packages, I get the following:

Setting up postfix (3.1.4-7) ...

Postfix (main.cf) configuration was not changed.  If you need to make 
changes,
edit /etc/postfix/main.cf (and others) as needed.  To view Postfix
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
postalias: fatal: unsupported dictionary type: mysql does not support bulk-mode creation.
dpkg: error processing package postfix (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postfix-mysql:
 postfix-mysql depends on postfix (= 3.1.4-7); however:
  Package postfix is not configured yet.

dpkg: error processing package postfix-mysql (--configure):
 dependency problems - leaving unconfigured

I'm not sure what's causing the issue and I'm not able to reboot until the packages are resolved due to other unrelated reasons on the system currently.

已采纳解答

原帖链接 · Olivier · CC BY-SA 3.0

I had exactly the same problem and solved it like this:

  • edit /etc/postfix/main.cf and comment out all lines containing mysql: for aliases (for instance # alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf)
  • run service postfix reload to take it into account
  • re-run the upgrade to re-configure postfix packages, this time it should work
  • re-edit main.cf to remove the comment and reload the postfix service as above

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-07-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。