安装完成后, 启动postfix警报: postfix-3.1.1版本的新功能, 用2.10版本没有这个警报.
postfix: warning: smtputf8_enable is true, but EAI support is not compiled in
postsuper: warning: smtputf8_enable is true, but EAI support is not compiled in
postfix/postlog: warning: smtputf8_enable is true, but EAI support is not compiled in
postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/.
postfix/postlog: warning: smtputf8_enable is true, but EAI support is not compiled in
postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/./master.lock
postfix/postlog: warning: smtputf8_enable is true, but EAI support is not compiled in
postfix/postfix-script: starting the Postfix mail system
postfix/postlog: warning: smtputf8_enable is true, but EAI support is not compiled in
postfix/postfix-script: fatal: mail system startup failed
导致了服务无法启动.
Email Address Internationalization (EAI) 电子邮件地址国际化组件, 这个警报实际上不影响服务器的启动, 服务启动失败的原因是其中的:
postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/.
解决方法简单, 将这个目录给postfix即可:
# chown -R postfix.postfix /var/lib/postfix/
关于EAI相关的警报信息, 可以在make makefile的时候, 指定不包含EAI, 如下: (To force Postfix to build without SMTPUTF8, specify:)
$ make makefiles CCARGS="-DNO_EAI ..."
如果已经编译安装完成, 不想重新编译了, 可以使用下面的简单方法, 将这个功能禁掉:
# postconf "smtputf8_enable = no"
# postfix start | reload
如此, 启动的时候就不会Warning了.