Closed landsman closed 8 years ago
wrong fqdn.
have nothing to do with install script itself
@gOOvER how can I fix it? Why install script was not check this?
Thats not part of the script to check this. Adding FQDN is Part of the Admin during install of the Distro ;)
Same during instalation on Ubuntu 16.04.
Sooooo, your Error Message:
cannot open '/etc/mailname' for reading: No such file or directory The value of variable $myhostname is "vps", but should have been a fully qualified domain name; perhaps uname(3) did not provide such. You must explicitly assign a FQDN of this host to variable $myhostname in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's network name! (failed).
Please give me the result of
hostname
and
hostname -f
Also check, if /etc/mailname exist
hostname = vps hostname -f = hostname: Name or service not known /etc/mailname/ = not exists
It's not related to script, it's related to the worng minimal install you had done.
See point 6 of this tutorial
https://www.howtoforge.com/tutorial/debian-8-jessie-minimal-server/2/
In my case was that it used pretty(short) hostname in /etc/amavisd/amavisd.conf
$mydomain = 'YOUR_domain_HERE'; # a convenient default for other settings
$myhostname = 'YOUR_hostname_HERE';
make changes and restart amavisd service.
On the end of install process on fresh Debian 8:
Here is a full log: https://gist.github.com/landsman/fb74e4fd9c7987e04f37e28cfc967f86