mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
automate the primary_hostname setup
Added Logic to Derive primary_hostname: After the server hostname ($servername) is set, we added code to derive the Exim primary_hostname as mail.<base domain>. 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.<base domain>, 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.
This commit is contained in:
parent
e061bf8f7c
commit
2abd4f53d7
1 changed files with 0 additions and 1 deletions
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
# myVesta Debian installer v 0.9
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variables & Functions #
|
||||
#----------------------------------------------------------#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue