From 04b1e0cf6f21d1dbf961b567312cdd3a64eeef78 Mon Sep 17 00:00:00 2001
From: Zhang Huangbin
Date: Mon, 22 Feb 2016 02:11:25 +0800
Subject: [PATCH] Update html/install.iredmail.on.freebsd.with.jail.html.
---
.../0-install.iredmail.on.debian.ubuntu.md | 19 ++-
.../0-install.iredmail.on.freebsd.md | 19 ++-
...0-install.iredmail.on.freebsd.with.jail.md | 137 +++++++++---------
.../0-install.iredmail.on.openbsd.md | 19 ++-
.../0-install.iredmail.on.rhel.md | 4 +-
html/install.iredmail.on.debian.ubuntu.html | 14 +-
html/install.iredmail.on.freebsd.html | 14 +-
...install.iredmail.on.freebsd.with.jail.html | 132 ++++++++---------
html/install.iredmail.on.openbsd.html | 14 +-
html/install.iredmail.on.rhel.html | 4 +-
10 files changed, 200 insertions(+), 176 deletions(-)
diff --git a/en_US/installation/0-install.iredmail.on.debian.ubuntu.md b/en_US/installation/0-install.iredmail.on.debian.ubuntu.md
index 90843718..9adbc064 100644
--- a/en_US/installation/0-install.iredmail.on.debian.ubuntu.md
+++ b/en_US/installation/0-install.iredmail.on.debian.ubuntu.md
@@ -8,7 +8,7 @@ __IMPORTANT WARNING__: iRedMail is designed to be deployed on a FRESH server sys
which means your server does __NOT__ have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
To install iRedMail on Debian or Ubuntu Linux, you need:
@@ -94,12 +94,17 @@ mx.example.com
It's now ready to start iRedMail installer, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-> For Chinese users: Our domain name `iredmail.org` is blocked in mainland
-> China since Jun 04, 2011, please run below command with a nearest mirror
-> site. For example: `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`.
->
-> * `http://42.159.241.31` is a mirror in mainland China. recommended.
-> * `http://106.187.51.47` is a Linode VPS hosted in Tokyo, Japan.
+> __Note to Chinese users__:
+>
+> Our domain name `iredmail.org` is blocked in mainland
+> China since Jun 04, 2011, please run command below to finish the installation:
+>
+> `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`
+>
+> Additional variables are:
+>
+> * EPEL repo: `IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'`
+> * SOGo repo: `SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'`
```
# cd /root/iRedMail-x.y.z/
diff --git a/en_US/installation/0-install.iredmail.on.freebsd.md b/en_US/installation/0-install.iredmail.on.freebsd.md
index 5cadc521..ab8a267c 100644
--- a/en_US/installation/0-install.iredmail.on.freebsd.md
+++ b/en_US/installation/0-install.iredmail.on.freebsd.md
@@ -12,7 +12,7 @@ __IMPORTANT WARNING__: iRedMail is designed to be deployed on a FRESH server sys
which means your server does __NOT__ have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
To install iRedMail on FreeBSD, you need:
@@ -99,12 +99,17 @@ mx.example.com
It's now ready to start iRedMail installer, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-> For Chinese users: Our domain name `iredmail.org` is blocked in mainland
-> China since Jun 04, 2011, please run below command with a nearest mirror
-> site. For example: `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`.
->
-> * `http://42.159.241.31` is a mirror in mainland China. recommended.
-> * `http://106.187.51.47` is a Linode VPS hosted in Tokyo, Japan.
+> __Note to Chinese users__:
+>
+> Our domain name `iredmail.org` is blocked in mainland
+> China since Jun 04, 2011, please run command below to finish the installation:
+>
+> `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`
+>
+> Additional variables are:
+>
+> * EPEL repo: `IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'`
+> * SOGo repo: `SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'`
```
# cd /root/iRedMail-x.y.z/
diff --git a/en_US/installation/0-install.iredmail.on.freebsd.with.jail.md b/en_US/installation/0-install.iredmail.on.freebsd.with.jail.md
index dda43f66..5df2370b 100644
--- a/en_US/installation/0-install.iredmail.on.freebsd.with.jail.md
+++ b/en_US/installation/0-install.iredmail.on.freebsd.with.jail.md
@@ -6,14 +6,16 @@
* This tutorial describes how to create a FreeBSD Jail with ezjail, then
install the latest iRedMail in Jail.
-* We use hostname `mx.example.com` and IP address `172.16.122.244` for our Jail server.
+* We use hostname `mx.example.com` and IP address `172.16.244.254` for our Jail server.
Notes:
-* This tutorial was tested with FreeBSD 9 and the latest ports tree, but it
- should work on FreeBSD 8 and 10 too.
+* This tutorial was tested with FreeBSD 10 and the latest ports tree, but it
+ should work on FreeBSD 9 and other releases.
* All backends available in iRedMail (OpenLDAP, MySQL/MariaDB, PostgreSQL) were
tested, work like a charm. :)
+* For more details about ezjail, please check FreeBSD Handbook:
+ [Managing Jails with ezjail](https://www.freebsd.org/doc/handbook/jails-ezjail.html).
## System Requirements
@@ -21,7 +23,7 @@ __IMPORTANT WARNING__: iRedMail is designed to be deployed on a FRESH server sys
which means your server does __NOT__ have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
* The latest stable release of iRedMail. You can download it here: http://www.iredmail.org/download.html
@@ -29,25 +31,6 @@ and it may not be working as expected.
## Preparations
-### Set a proper hostname and IP address for Jail server
-
-We use hostname `mx.example.com` and internal IP address `172.16.122.244` for
-example. We created an alias IP address on network interface `em0`, so we have
-below setting in `/etc/rc.conf` for this IP address like below:
-
-```
-# Part of file: /etc/rc.conf
-
-ifconfig_em0_alias0="inet 172.16.122.244 netmask 255.255.255.0"
-
-# Settings for our Jail: mx.example.com.
-jail_mx_example_com_hostname="mx.example.com"
-jail_mx_example_com_ip="172.16.122.244"
-
-# Required by PostgreSQL, otherwise initializing database will fail.
-jail_mx_example_com_parameters='allow.sysvipc=1'
-```
-
### Install sysutils/ezjail and add required settings
* Install ezjail with ports tree:
@@ -57,23 +40,13 @@ jail_mx_example_com_parameters='allow.sysvipc=1'
# make install clean
```
-* Enable Jail by adding below setting in `/etc/rc.conf`:
+* Enable ezjail service by appending below line in `/etc/rc.conf`:
```
-# Part of file: /etc/rc.conf
-
# Start ezjail while system start up
ezjail_enable="YES"
```
-* [OPTIONAL] Allow to use `ping` command inside Jail by adding below line in
- `/etc/sysctl.conf`:
-
-```
-# Part of file: /etc/sysctl.conf
-security.jail.allow_raw_sockets=1
-```
-
* Rebooting system is required after changing `/etc/rc.conf`.
```
@@ -82,42 +55,26 @@ security.jail.allow_raw_sockets=1
### Create Jail
-* After server reboot, create the base jail that all jails we created later will use:
+* After server reboot, populate the Jail with FreeBSD-RELEASE
```
# ezjail-admin install -p
```
-* 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`:
+* Create Jail
+
+ * hostname `mx.example.com`
+ * bound IP address `172.16.244.254` to network interface `em0`
+ * Jail is placed under `/jails/mx.example.com`
```
-# ezjail-admin create -r /jails/mx.example.com mx.example.com 172.16.122.244
-```
-
-* Set hostname of Jail in `/jails/mx.example.com/etc/rc.conf`:
-
-```
-# File: /jails/mx.example.com/etc/rc.conf
-hostname="mx.example.com"
-```
-
-* [OPTIONAL] Share /usr/ports/distfiles/ with Jail by adding below line in
- `/etc/fstab.mx_example_com`:
-
- * NOTE: Jail will set ports tree directory to `/var/ports` instead of
- `/usr/ports` in `/jails/mx.example.com/etc/make.conf`, you can either
- use this default setting or change it to `/usr/ports`.
-
-```
-# Part of file: /etc/fstab.mx_example.com
-/usr/ports/distfiles /jails/mx.example.com/basejail/usr/ports/distfiles nullfs rw 0 0
+# ezjail-admin create -r /jails/mx.example.com mx.example.com 'em0|172.16.244.254'
```
* Start Jail.
```
-# /usr/local/etc/rc.d/ezjail restart
+# service ezjail restart
```
* List all Jails:
@@ -126,7 +83,7 @@ hostname="mx.example.com"
# ezjail-admin list
STA JID IP Hostname Root Directory
--- ---- ---------------- --------------------------------- ------------------------
-DS 1 172.16.122.244 mx.example.com /jails/mx.example.com
+DS 1 172.16.244.254 mx.example.com /jails/mx.example.com
```
## Install iRedMail
@@ -141,13 +98,17 @@ We can now enter this Jail with below command:
```
# File: /etc/resolv.conf
-nameserver 172.16.122.2
+nameserver 172.16.244.2
```
* In Jail, install binary package `bash-static`, it's required by iRedMail.
```
+# -- For FreeBSD 9 or earlier releases --
# pkg_add -r bash-static
+
+# -- For FreeBSD 10 or later releases --
+# pkg install bash-static
```
## Start iRedMail installer
@@ -155,17 +116,22 @@ nameserver 172.16.122.2
It's now ready to start iRedMail installer inside Jail, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-> For Chinese users: Our domain name `iredmail.org` is blocked in mainland
-> China since Jun 04, 2011, please run below command with a nearest mirror
-> site. For example: `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`.
->
-> * `http://42.159.241.31` is a mirror in mainland China. recommended.
-> * `http://106.187.51.47` is a Linode VPS hosted in Tokyo, Japan.
+> __Note to Chinese users__:
+>
+> Our domain name `iredmail.org` is blocked in mainland
+> China since Jun 04, 2011, please run command below to finish the installation:
+>
+> `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`
+>
+> Additional variables are:
+>
+> * EPEL repo: `IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'`
+> * SOGo repo: `SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'`
```
# bash # <- start bash shell, REQUIRED
# cd /root/iRedMail/
-# LOCAL_ADDRESS='172.16.122.244' bash iRedMail.sh
+# LOCAL_ADDRESS='172.16.244.254' bash iRedMail.sh
```
## Screenshots of installation:
@@ -283,3 +249,40 @@ hostname or IP address.
Please post all issues, feedbacks, feature requests, suggestions in our [online
support forum](http://www.iredmail.org/forum/), it's more responsible than you
expected.
+
+## Some Tips for FreeBSD Jail
+
+### Allow `ping` in Jail
+
+* Appending below line in `/etc/sysctl.conf` to allow to use `ping` command
+ inside Jail:
+
+```
+security.jail.allow_raw_sockets=1
+```
+
+* Update `/usr/local/etc/ezjail/mx_example_com` to allow `ping` inside Jail:
+
+```
+export jail_mx_example_com_parameters="allow.raw_sockets=1"
+```
+
+### Share `/usr/ports/distfiles` with Jail
+
+To share `/usr/ports/distfiles/` with Jail, please append below line in
+ `/etc/fstab.mx_example_com`:
+
+> Jail will set ports tree directory to `/var/ports` instead of
+> `/usr/ports` in `/jails/mx.example.com/etc/make.conf` by default, you can
+> either use this default setting or change it to `/usr/ports`.
+
+```
+# Part of file: /etc/fstab.mx_example.com
+/usr/ports/distfiles /jails/mx.example.com/basejail/var/ports/distfiles nullfs rw 0 0
+```
+
+Create directory `/usr/jails/basejail/var/ports/distfiles`:
+
+```
+# mkdir /usr/jails/basejail/var/ports/distfiles
+```
diff --git a/en_US/installation/0-install.iredmail.on.openbsd.md b/en_US/installation/0-install.iredmail.on.openbsd.md
index da7279a4..72e789a6 100644
--- a/en_US/installation/0-install.iredmail.on.openbsd.md
+++ b/en_US/installation/0-install.iredmail.on.openbsd.md
@@ -8,7 +8,7 @@ __IMPORTANT WARNING__: iRedMail is designed to be deployed on a FRESH server sys
which means your server does __NOT__ have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
To install iRedMail on OpenBSD, you need:
@@ -123,12 +123,17 @@ Install Bash shell, it's required by iRedMail.
It's now ready to start iRedMail installer, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-> For Chinese users: Our domain name `iredmail.org` is blocked in mainland
-> China since Jun 04, 2011, please run below command with a nearest mirror
-> site. For example: `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`.
->
-> * `http://42.159.241.31` is a mirror in mainland China. recommended.
-> * `http://106.187.51.47` is a Linode VPS hosted in Tokyo, Japan.
+> __Note to Chinese users__:
+>
+> Our domain name `iredmail.org` is blocked in mainland
+> China since Jun 04, 2011, please run command below to finish the installation:
+>
+> `IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh`
+>
+> Additional variables are:
+>
+> * EPEL repo: `IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'`
+> * SOGo repo: `SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'`
```
# cd /root/iRedMail-x.y.z/
diff --git a/en_US/installation/0-install.iredmail.on.rhel.md b/en_US/installation/0-install.iredmail.on.rhel.md
index 2269c1bc..12bef7dd 100644
--- a/en_US/installation/0-install.iredmail.on.rhel.md
+++ b/en_US/installation/0-install.iredmail.on.rhel.md
@@ -8,7 +8,7 @@ __IMPORTANT WARNING__: iRedMail is designed to be deployed on a FRESH server sys
which means your server does __NOT__ have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
To install iRedMail on RHEL or CentOS Linux, you need:
@@ -121,7 +121,7 @@ Disable it immediately without rebooting your server.
It's now ready to start iRedMail installer, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-> __For Chinese users__:
+> __Note to Chinese users__:
>
> Our domain name `iredmail.org` is blocked in mainland
> China since Jun 04, 2011, please run command below to finish the installation:
diff --git a/html/install.iredmail.on.debian.ubuntu.html b/html/install.iredmail.on.debian.ubuntu.html
index 19511f7b..feb45bd7 100644
--- a/html/install.iredmail.on.debian.ubuntu.html
+++ b/html/install.iredmail.on.debian.ubuntu.html
@@ -35,7 +35,7 @@
which means your server does NOT have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
To install iRedMail on Debian or Ubuntu Linux, you need:
@@ -113,12 +113,14 @@ mx.example.com
It's now ready to start iRedMail installer, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-For Chinese users: Our domain name iredmail.org
is blocked in mainland
-China since Jun 04, 2011, please run below command with a nearest mirror
-site. For example: IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh
.
+Note to Chinese users:
+Our domain name iredmail.org
is blocked in mainland
+China since Jun 04, 2011, please run command below to finish the installation:
+IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh
+Additional variables are:
-http://42.159.241.31
is a mirror in mainland China. recommended.
-http://106.187.51.47
is a Linode VPS hosted in Tokyo, Japan.
+- EPEL repo:
IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'
+- SOGo repo:
SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'
# cd /root/iRedMail-x.y.z/
diff --git a/html/install.iredmail.on.freebsd.html b/html/install.iredmail.on.freebsd.html
index e6e3fd7a..a5d9ba5b 100644
--- a/html/install.iredmail.on.freebsd.html
+++ b/html/install.iredmail.on.freebsd.html
@@ -41,7 +41,7 @@ this installation guide instead:
which means your server does NOT have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
To install iRedMail on FreeBSD, you need:
@@ -116,12 +116,14 @@ mx.example.com
It's now ready to start iRedMail installer, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-For Chinese users: Our domain name iredmail.org
is blocked in mainland
-China since Jun 04, 2011, please run below command with a nearest mirror
-site. For example: IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh
.
+Note to Chinese users:
+Our domain name iredmail.org
is blocked in mainland
+China since Jun 04, 2011, please run command below to finish the installation:
+IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh
+Additional variables are:
-http://42.159.241.31
is a mirror in mainland China. recommended.
-http://106.187.51.47
is a Linode VPS hosted in Tokyo, Japan.
+- EPEL repo:
IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'
+- SOGo repo:
SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'
# cd /root/iRedMail-x.y.z/
diff --git a/html/install.iredmail.on.freebsd.with.jail.html b/html/install.iredmail.on.freebsd.with.jail.html
index 985a9481..05b61c82 100644
--- a/html/install.iredmail.on.freebsd.with.jail.html
+++ b/html/install.iredmail.on.freebsd.with.jail.html
@@ -17,7 +17,6 @@
Summary
System Requirements
Preparations
@@ -28,6 +27,11 @@
Important things you MUST know after installation
Access webmail and other web applications
Get technical support
+Some Tips for FreeBSD Jail
+
@@ -36,43 +40,29 @@
- This tutorial describes how to create a FreeBSD Jail with ezjail, then
install the latest iRedMail in Jail.
-- We use hostname
mx.example.com
and IP address 172.16.122.244
for our Jail server.
+- We use hostname
mx.example.com
and IP address 172.16.244.254
for our Jail server.
Notes:
-- This tutorial was tested with FreeBSD 9 and the latest ports tree, but it
- should work on FreeBSD 8 and 10 too.
+- This tutorial was tested with FreeBSD 10 and the latest ports tree, but it
+ should work on FreeBSD 9 and other releases.
- All backends available in iRedMail (OpenLDAP, MySQL/MariaDB, PostgreSQL) were
tested, work like a charm. :)
+- For more details about ezjail, please check FreeBSD Handbook:
+ Managing Jails with ezjail.
System Requirements
IMPORTANT WARNING: iRedMail is designed to be deployed on a FRESH server system,
which means your server does NOT have mail related components installed,
e.g. MySQL, OpenLDAP, Postfix, Dovecot, Amavisd, etc. iRedMail will install
and configure them for you automatically. Otherwise it may override your
-existing files/configurations althought it will backup files before modifing,
+existing files/configurations althought it will backup files before modifying,
and it may not be working as expected.
- The latest stable release of iRedMail. You can download it here: http://www.iredmail.org/download.html
- Port
sysutils/ezjail
for FreeBSD.
Preparations
-Set a proper hostname and IP address for Jail server
-We use hostname mx.example.com
and internal IP address 172.16.122.244
for
-example. We created an alias IP address on network interface em0
, so we have
-below setting in /etc/rc.conf
for this IP address like below:
-# Part of file: /etc/rc.conf
-
-ifconfig_em0_alias0="inet 172.16.122.244 netmask 255.255.255.0"
-
-# Settings for our Jail: mx.example.com.
-jail_mx_example_com_hostname="mx.example.com"
-jail_mx_example_com_ip="172.16.122.244"
-
-# Required by PostgreSQL, otherwise initializing database will fail.
-jail_mx_example_com_parameters='allow.sysvipc=1'
-
-
Install sysutils/ezjail and add required settings
- Install ezjail with ports tree:
@@ -82,22 +72,12 @@ jail_mx_example_com_parameters='allow.sysvipc=1'
-- Enable Jail by adding below setting in
/etc/rc.conf
:
+- Enable ezjail service by appending below line in
/etc/rc.conf
:
-# Part of file: /etc/rc.conf
-
-# Start ezjail while system start up
+# Start ezjail while system start up
ezjail_enable="YES"
-
-- [OPTIONAL] Allow to use
ping
command inside Jail by adding below line in
- /etc/sysctl.conf
:
-
-# Part of file: /etc/sysctl.conf
-security.jail.allow_raw_sockets=1
-
-
- Rebooting system is required after changing
/etc/rc.conf
.
@@ -106,44 +86,28 @@ security.jail.allow_raw_sockets=1
Create Jail
-- After server reboot, create the base jail that all jails we created later will use:
+- After server reboot, populate the Jail with FreeBSD-RELEASE
# ezjail-admin install -p
-
-- 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
:
-
-# ezjail-admin create -r /jails/mx.example.com mx.example.com 172.16.122.244
-
-
-
-- Set hostname of Jail in
/jails/mx.example.com/etc/rc.conf
:
-
-# File: /jails/mx.example.com/etc/rc.conf
-hostname="mx.example.com"
-
-
-# Part of file: /etc/fstab.mx_example.com
-/usr/ports/distfiles /jails/mx.example.com/basejail/usr/ports/distfiles nullfs rw 0 0
+# ezjail-admin create -r /jails/mx.example.com mx.example.com 'em0|172.16.244.254'
-# /usr/local/etc/rc.d/ezjail restart
+# service ezjail restart
@@ -152,7 +116,7 @@ hostname="mx.example.com"
# ezjail-admin list
STA JID IP Hostname Root Directory
--- ---- ---------------- --------------------------------- ------------------------
-DS 1 172.16.122.244 mx.example.com /jails/mx.example.com
+DS 1 172.16.244.254 mx.example.com /jails/mx.example.com
Install iRedMail
@@ -164,30 +128,36 @@ DS 1 172.16.122.244 mx.example.com /jails/mx.example.co
In Jail, update /etc/resolv.conf
with valid DNS server address(es). For example:
# File: /etc/resolv.conf
-nameserver 172.16.122.2
+nameserver 172.16.244.2
- In Jail, install binary package
bash-static
, it's required by iRedMail.
-# pkg_add -r bash-static
+# -- For FreeBSD 9 or earlier releases --
+# pkg_add -r bash-static
+
+# -- For FreeBSD 10 or later releases --
+# pkg install bash-static
Start iRedMail installer
It's now ready to start iRedMail installer inside Jail, it will ask you several simple
questions, that's all required to setup a full-featured mail server.
-For Chinese users: Our domain name iredmail.org
is blocked in mainland
-China since Jun 04, 2011, please run below command with a nearest mirror
-site. For example: IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh
.
+Note to Chinese users:
+Our domain name iredmail.org
is blocked in mainland
+China since Jun 04, 2011, please run command below to finish the installation:
+IREDMAIL_MIRROR='http://42.159.241.31' bash iRedMail.sh
+Additional variables are:
-http://42.159.241.31
is a mirror in mainland China. recommended.
-http://106.187.51.47
is a Linode VPS hosted in Tokyo, Japan.
+- EPEL repo:
IREDMAIL_EPEL_MIRROR='http://mirrors.aliyun.com/epel'
+- SOGo repo:
SOGO_PKG_MIRROR='http://42.159.241.31/SOGo'
# bash # <- start bash shell, REQUIRED
# cd /root/iRedMail/
-# LOCAL_ADDRESS='172.16.122.244' bash iRedMail.sh
+# LOCAL_ADDRESS='172.16.244.254' bash iRedMail.sh
Screenshots of installation:
@@ -301,7 +271,37 @@ hostname or IP address.
Get technical support
Please post all issues, feedbacks, feature requests, suggestions in our online
support forum, it's more responsible than you
-expected.
All documents are available in BitBucket repository, and published under Creative Commons license. If you found something wrong, please do contact us to fix it.