Install/iRedMail/FreeBSD.Jail

From iRedMail

(Difference between revisions)
Jump to: navigation, search
(Created page with '__TOC__ ---- This is a DRAFT, still working in progress. Don't try it on production server. ---- = Summary = = Requirements = * iRedMail-0.8.2 or later releases. = Prepare Jai…')
(Prepare Jail)
Line 22: Line 22:
* Reboot system.
* Reboot system.
 +
{{cmd|<pre># reboot</pre>}}
 +
 +
* After system start up, create Jail for domain name '''mx.example.com''', bound to internal IP address 172.16.122.244. All files are placed under '''/jails/mx.example.com''':
 +
{{cmd|<pre>
 +
# ezjail-admin create -r /jails/mx.example.com mx.example.com 172.16.122.244
 +
</pre>}}
 +
 +
* Start Jail.
 +
{{cmd|<pre>
 +
# /usr/local/etc/rc.d/ezjail restart
 +
</pre>}}
-
* Create Jail.
 
* In Jail, update /etc/resolv.conf with valid DNS server address(es).
* In Jail, update /etc/resolv.conf with valid DNS server address(es).
* In Jail, install bash:
* In Jail, install bash:
Line 35: Line 45:
bash # cd /root/iRedMail/
bash # cd /root/iRedMail/
bash # LOCAL_ADDRESS='192.168.1.2' bash iRedMail.sh
bash # LOCAL_ADDRESS='192.168.1.2' bash iRedMail.sh
-
</pre>
+
</pre>}}

Revision as of 12:04, 26 August 2012

Contents



This is a DRAFT, still working in progress. Don't try it on production server.


Summary

Requirements

  • iRedMail-0.8.2 or later releases.

Prepare Jail

  • Install ezjail:
Terminal:
# cd /usr/ports/sysutils/ezjail/
# make install clean
  • Add below setting in /etc/rc.conf:
File: /etc/rc.conf
jail_sysvipc_allow="YES"
  • Reboot system.
Terminal:
# reboot
  • After system start up, create Jail for domain name mx.example.com, bound to internal IP address 172.16.122.244. All files are placed under /jails/mx.example.com:
Terminal:
# ezjail-admin create -r /jails/mx.example.com mx.example.com 172.16.122.244
  • Start Jail.
Terminal:
# /usr/local/etc/rc.d/ezjail restart
  • In Jail, update /etc/resolv.conf with valid DNS server address(es).
  • In Jail, install bash:
Terminal:
# pkg_add -r bash-static
  • Start iRedMail installer with your Jail ip address:
Terminal:
# bash
bash # cd /root/iRedMail/
bash # LOCAL_ADDRESS='192.168.1.2' bash iRedMail.sh
Personal tools