mirror of
https://github.com/myvesta/vesta
synced 2025-08-22 06:14:21 -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
4fcc01df6f
commit
64608d5246
1 changed files with 448 additions and 760 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue