我正在运行 Ubuntu 16.10 并尝试设置 postfix。但我的 amavis 安装并不顺利。
apt upgrade
给出
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amavisd-new (1:2.10.1-4ubuntu1) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled
Active: failed (Result: exit-code) since Mon 2016-11-14 19:56:05 IST; 9ms ago
Docs: man:systemd-sysv-generator(8)
Process: 5465 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)
Nov 14 19:56:05 lenovo amavis[5465]: The value of variable $myhostname is...en
Nov 14 19:56:05 lenovo amavis[5465]: a fully qualified domain name; perha...h.
Nov 14 19:56:05 lenovo amavis[5465]: You must explicitly assign a FQDN of...me
Nov 14 19:56:05 lenovo amavis[5465]: in /etc/amavis/conf.d/05-node_id, or...'s
Nov 14 19:56:05 lenovo amavis[5465]: network name!
Nov 14 19:56:05 lenovo amavis[5465]: (failed).
Nov 14 19:56:05 lenovo systemd[1]: amavis.service: Control process exited, ...=1
Nov 14 19:56:05 lenovo systemd[1]: Failed to start LSB: Starts amavisd-new ...r.
Nov 14 19:56:05 lenovo systemd[1]: amavis.service: Unit entered failed state.
Nov 14 19:56:05 lenovo systemd[1]: amavis.service: Failed with result 'exit...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package amavisd-new (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
amavisd-new
E: Sub-process /usr/bin/dpkg returned an error code (1)
我怎样才能解决这个问题?
答案1
我遇到了这个问题,与服务器的 FQDN 有关。
我修改了该/etc/amavis/conf.d/05-node_id
文件。
我取消了注释(删除了#
之前的)$myhostname = "....."
并插入了 FQDN。