]> git.proxmox.com Git - pve-installer.git/commitdiff
ensure /etc/aliases.db is generated
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 23 Oct 2019 16:10:27 +0000 (18:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Oct 2019 16:16:44 +0000 (18:16 +0200)
postfix relies on /etc/aliases.db for forwarding mail, without this file
all mails get deferred. (see `man newaliases`)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
proxinstall

index 6ee3aa0bad000365e132f4a8d0969eb31be452c3..5d02b345622a2a609f6b25c415b670267fb3d6ef 100755 (executable)
@@ -1643,6 +1643,8 @@ _EOD
        syscmd("chroot $targetdir /usr/sbin/postfix check");
        # cleanup mail queue
        syscmd("chroot $targetdir /usr/sbin/postsuper -d ALL");
+       # create /etc/aliases.db (/etc/aliases is shipped in the base squashfs)
+       syscmd("chroot $targetdir /usr/bin/newaliases");
 
        # enable NTP (timedatectl set-ntp true  does not work without DBUS)
        syscmd("chroot $targetdir /bin/systemctl enable systemd-timesyncd.service");