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.iva...@proxmox.com>
---
 proxinstall | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/proxinstall b/proxinstall
index 6ee3aa0..5d02b34 100755
--- a/proxinstall
+++ b/proxinstall
@@ -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");
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to