Updates in install scripts
This commit is contained in:
parent
7b7d5ecf2a
commit
9a34d05d36
3 changed files with 18 additions and 3 deletions
18
README.md
18
README.md
|
@ -35,7 +35,7 @@ The recommended deployment of Mailtrain would use 3 DNS entries that all points
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Installation on fresh CentOS 7 (public website secured by SSL)
|
### Installation on fresh CentOS 7 or Ubuntu 18.04 LTS (public website secured by SSL)
|
||||||
|
|
||||||
This will setup a publicly accessible Mailtrain instance. All endpoints (trusted, sandbox, public) will provide both HTTP (on port 80)
|
This will setup a publicly accessible Mailtrain instance. All endpoints (trusted, sandbox, public) will provide both HTTP (on port 80)
|
||||||
and HTTPS (on port 443). The HTTP ports just issue HTTP redirect to their HTTPS counterparts.
|
and HTTPS (on port 443). The HTTP ports just issue HTTP redirect to their HTTPS counterparts.
|
||||||
|
@ -69,10 +69,17 @@ Thus, by running this script below, you agree with the Let's Encrypt's Terms of
|
||||||
|
|
||||||
4. Run the installation script. Replace the urls and your email address with the correct values. **NOTE** that running this script you agree
|
4. Run the installation script. Replace the urls and your email address with the correct values. **NOTE** that running this script you agree
|
||||||
Let's Encrypt's conditions.
|
Let's Encrypt's conditions.
|
||||||
|
|
||||||
|
For Centos 7 type:
|
||||||
```
|
```
|
||||||
sh setup/install-centos7-https.sh mailtrain.example.com sbox.mailtrain.example.com lists.example.com admin@example.com
|
sh setup/install-centos7-https.sh mailtrain.example.com sbox.mailtrain.example.com lists.example.com admin@example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For Ubuntu 18.04 LTS type:
|
||||||
|
```
|
||||||
|
sh setup/install-ubuntu1804-https.sh mailtrain.example.com sbox.mailtrain.example.com lists.example.com admin@example.com
|
||||||
|
```
|
||||||
|
|
||||||
5. Start Mailtrain and enable to be started by default when your server starts.
|
5. Start Mailtrain and enable to be started by default when your server starts.
|
||||||
```
|
```
|
||||||
systemctl start mailtrain
|
systemctl start mailtrain
|
||||||
|
@ -90,7 +97,7 @@ Thus, by running this script below, you agree with the Let's Encrypt's Terms of
|
||||||
10. If you intend to sign your email by DKIM, set the DKIM key and DKIM selector under Administration/Send Configurations.
|
10. If you intend to sign your email by DKIM, set the DKIM key and DKIM selector under Administration/Send Configurations.
|
||||||
|
|
||||||
|
|
||||||
### Installation on fresh CentOS 7 (local installation)
|
### Installation on fresh CentOS 7 or Ubuntu 18.04 LTS (local installation)
|
||||||
|
|
||||||
This will setup a locally accessible Mailtrain instance (primarily for development and testing).
|
This will setup a locally accessible Mailtrain instance (primarily for development and testing).
|
||||||
All endpoints (trusted, sandbox, public) will provide only HTTP as follows:
|
All endpoints (trusted, sandbox, public) will provide only HTTP as follows:
|
||||||
|
@ -118,10 +125,17 @@ All endpoints (trusted, sandbox, public) will provide only HTTP as follows:
|
||||||
|
|
||||||
4. Run the installation script. Replace the urls and your email address with the correct values. **NOTE** that running this script you agree
|
4. Run the installation script. Replace the urls and your email address with the correct values. **NOTE** that running this script you agree
|
||||||
Let's Encrypt's conditions.
|
Let's Encrypt's conditions.
|
||||||
|
|
||||||
|
For Centos 7 type:
|
||||||
```
|
```
|
||||||
sh setup/install-centos7-local.sh
|
sh setup/install-centos7-local.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For Ubuntu 18.04 LTS type:
|
||||||
|
```
|
||||||
|
sh setup/install-ubuntu1804-local.sh
|
||||||
|
```
|
||||||
|
|
||||||
5. Start Mailtrain and enable to be started by default when your server starts.
|
5. Start Mailtrain and enable to be started by default when your server starts.
|
||||||
```
|
```
|
||||||
systemctl start mailtrain
|
systemctl start mailtrain
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# This is not a standalone script. It provides common functions to server-*.sh scripts
|
# This is not a standalone script. It provides common functions to server-*.sh scripts
|
||||||
|
|
||||||
local hostType="$1"
|
hostType="$1"
|
||||||
|
|
||||||
case "$hostType" in
|
case "$hostType" in
|
||||||
centos7)
|
centos7)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
SCRIPT_PATH=$(dirname $(realpath -s $0))
|
SCRIPT_PATH=$(dirname $(realpath -s $0))
|
||||||
. $SCRIPT_PATH/functions ubuntu1804
|
. $SCRIPT_PATH/functions ubuntu1804
|
||||||
|
|
Loading…
Reference in a new issue