I also have this issue on a new build of Kubuntu 16.10, which has had postfix, dovecot and amavis installed on;
paul@orion:/tmp$ sudo apt-get install amavisd-new Reading package lists... Done Building dependency tree Reading state information... Done amavisd-new is already the newest version (1:2.10.1-4ubuntu1). The following packages were automatically installed and are no longer required: courier-authdaemon courier-authlib courier-authlib-userdb courier-base expect libcourier-unicode1 tcl-expect xbase-clients Use 'sudo apt autoremove' to remove them. 0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade. 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 Fri 2016-11-25 21:21:02 GMT; 7ms ago Docs: man:systemd-sysv-generator(8) Process: 17905 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE) Nov 25 21:21:02 orion amavis[17905]: Starting amavisd: The value of variable $myhostname ...een Nov 25 21:21:02 orion amavis[17905]: a fully qualified domain name; perhaps uname(3) did ...ch. Nov 25 21:21:02 orion amavis[17905]: You must explicitly assign a FQDN of this host to va...ame Nov 25 21:21:02 orion amavis[17905]: in /etc/amavis/conf.d/05-node_id, or fix what uname(...t's Nov 25 21:21:02 orion amavis[17905]: network name! Nov 25 21:21:02 orion amavis[17905]: (failed). Nov 25 21:21:02 orion systemd[1]: amavis.service: Control process exited, code=exited status=1 Nov 25 21:21:02 orion systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter. Nov 25 21:21:02 orion systemd[1]: amavis.service: Unit entered failed state. Nov 25 21:21:02 orion systemd[1]: amavis.service: Failed with result 'exit-code'. 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) I do have a hostname and mailname set paul@orion:/tmp$ hostname orion paul@orion:/tmp$ hostname --fqdn orion paul@orion:/tmp$ cat /etc/mailname orion Please let me know if I can provide any futhur information. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1639702 Title: package amavisd-new 1:2.10.1-4ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/amavisd-new/+bug/1639702/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs