J'utilise Ubuntu 16.10 et j'essaie de configurer postfix. Mais mon installation amavis ne se passe pas bien.
apt upgrade
donne
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)
Comment puis-je réparer cela?
J'ai eu ce problème, avait à faire avec le nom de domaine complet du serveur.
J'ai modifié le fichier /etc/amavis/conf.d/05-node_id
.
J'ai commenté (supprimé le #
avant) $myhostname = "....."
et inséré le nom de domaine complet.