From 2774ce713efb6ecb7fa00d41cc719321dea96445 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Sat, 6 Jan 2024 22:09:41 -0700 Subject: [PATCH] Update Servers/Linux/iRedMail.md --- Servers/Linux/iRedMail.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Servers/Linux/iRedMail.md b/Servers/Linux/iRedMail.md index 42555b9..03e0e8f 100644 --- a/Servers/Linux/iRedMail.md +++ b/Servers/Linux/iRedMail.md @@ -8,7 +8,7 @@ Self-Hosted Open-Source email server that can be setup in minutes, and is enterp The instructions below are specific to my homelab environment, but can be easily ported depending on your needs. This guide also assumes you want to operate a PostgreSQL-based iRedMail installation. You can follow along with the official documentation on [Installation](https://docs.iredmail.org/install.iredmail.on.rhel.html) as well as [DNS Record Configuration](https://docs.iredmail.org/setup.dns.html) if you want more detailed explanations throughout the installation process. ## Configure FQDN -Ensure the FQDN of the server is correctly set. You can find the hostname configured in two locations: `/etc/hostname` and `/etc/hosts`. +Ensure the FQDN of the server is correctly set in `/etc/hostname`. The `/etc/hosts` file will be automatically injected using the FQDN from `/etc/hostname` in a script further down, don't worry about editing it. ## Disable SELinux iRedMail doesn't work with SELinux, so please disable it by setting below value in its config file /etc/selinux/config. After server reboot, SELinux will be completely disabled. @@ -40,6 +40,9 @@ You will then proceed to bootstrap a silent unattended installation of iRedMail. You absolutely need to ensure that `/var/vmail` has a lot of space. At least 16GB. This is where all of your emails / mailboxes / a lot of settings will be. If possible, create a second physical/virtual disk specifically for the `/var` partition, or specifically for `/var/vmail` at minimum, so you can expand it over time if necessary. LVM-based provisioning is recommended but not required. ``` sh +# Automatically configure the /etc/hosts file to point to the server listed in "/etc/hostname". +sudo sed -i "1i 127.0.0.1 $(cat /etc/hostname) $(cut -d '.' -f 1 /etc/hostname) localhost localhost.localdomain localhost4 localhost4.localdomain4" /etc/hosts + # Check for Updates in the Package Manager yum update -y