Package: ssmtp Severity: normal Tags: newcomer Dear Maintainer,
When installing ssmtp via either debootstrap --include or via systemd-nspawn -D container apt-get install ssmtp, ssmtp fails to install due to failure of resolving the FQDN. The issue is caused by the postinst script where it uses hostname -f (see http://sources.debian.net/src/ssmtp/2.64-8/debian/postinst/#L22 currently) which cannot be resolved yet. hostname -f or domainname fail: Temporary failure in name resolution. The /etc/hosts and /etc/hostname files where set up appropiatly and booting the container normally and then installing ssmtp works fine. It should thus be avoided to use hostname -f in the postinst script. -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386, armhf Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)