diff --git a/Servers/Linux/iRedMail.md b/Servers/Linux/iRedMail.md index 12200b7..e804b4a 100644 --- a/Servers/Linux/iRedMail.md +++ b/Servers/Linux/iRedMail.md @@ -13,8 +13,12 @@ Ensure the FQDN of the server is correctly set. You can find the hostname confi ## 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. ``` sh -sudo sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config # (1) -sudo setenforce 0 +# Elevate to Root User +sudo su + +# Disable SELinux +sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config # (1) +setenforce 0 ``` 1. If you prefer to let SELinux prints warnings instead of enforcing, you can set this value instead: `SELINUX=permissive` @@ -22,9 +26,6 @@ sudo setenforce 0 ## Set Domain and iRedMail Version Start by connecting to the server / VM via SSH, then set silent deployment variables below. ``` sh -# Elevate to Root User -sudo su - # Define some deployment variables. VERSION="1.6.8" # (1) MAIL_DOMAIN="bunny-lab.io" # (2)