Question 1:
How should it be /etc/hosts file for iRedMail installation in Jail?
127.0.0.1 mx.example.com mx localhost localhost.localdomain
OR
10.0.0.5 mx.example.com mx localhost localhost.localdomain
Hi kuranist,
As you can see in our tutorial, we didn't update /etc/hosts in Jailed server. Instead, we set it in /etc/hosts on host server (not the Jailed one): http://www.iredmail.org/wiki/index.php? … ail_server (Section "Set a proper hostname and IP address for Jail server").
Question 2:
How do i start iRedMail installation in Jail?
jail# LOCAL_ADDRESS='10.0.0.5' bash iRedMail.sh
OR
jail# LOCAL_ADDRESS='127.0.0.1' bash iRedMail.sh
of course the first one, use the IP address of your Jailed server:
jail# LOCAL_ADDRESS='10.0.0.5' bash iRedMail.sh
Question 3: (And Last)
Which one is healty?
Firstly ; change LOCAL_ADDRESS line in /iRedMail/conf/global
...
OR Directly;#LOCAL_ADDRESS='10.0.0.5' bash iRedMail.sh
The second one is the best.
We try our best to not to make your hands dirty, you can know specify the IP address of Jailed server on command line directly instead of modifying iRedMail source file.
Again, this one is the best:
# LOCAL_ADDRESS='10.0.0.5' bash iRedMail.sh