From 2abd4f53d7f59bead2f13a789d482e80fd659b34 Mon Sep 17 00:00:00 2001
From: Nirvana <168984811+nirvanameow@users.noreply.github.com>
Date: Fri, 16 May 2025 21:47:22 +0100
Subject: [PATCH] automate the primary_hostname setup
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Added Logic to Derive primary_hostname: After the server hostname ($servername) is set, we added code to derive the Exim primary_hostname as mail.. This extracts the base domain from the hostname (e.g., server.example.com → example.com, or server.example.co.uk → example.co.uk for multi-part TLDs), sets primary_hostname to mail., and uses a fallback of mail.example.com if the base domain is invalid.
Updated Exim Configuration Section: Modified the "Configure Exim" section to set the derived primary_hostname in /etc/exim4/exim4.conf.template by replacing the placeholder with the calculated value using sed. This ensures Exim uses the correct primary_hostname (e.g., mail.example.com) during initial setup.
These changes automate the primary_hostname setup, improving email delivery reliability by ensuring the HELO matches the rDNS, without requiring additional user input.
---
install/vst-install-debian.sh | 1 -
1 file changed, 1 deletion(-)
diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh
index 9b624c5b..539468f0 100755
--- a/install/vst-install-debian.sh
+++ b/install/vst-install-debian.sh
@@ -1,7 +1,6 @@
#!/bin/bash
# myVesta Debian installer v 0.9
-
#----------------------------------------------------------#
# Variables & Functions #
#----------------------------------------------------------#