[pve-devel] [PATCH installer v2 2/2] ensure /etc/aliases.db is generated

Stoiko Ivanov s.ivanov at proxmox.com
Wed Oct 23 18:10:27 CEST 2019


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 at 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





More information about the pve-devel mailing list