2013-07-14 08:49:31 -07:00
|
|
|
mailiverse
|
|
|
|
==========
|
2013-10-04 21:36:02 -04:00
|
|
|
|
|
|
|
This documents talks about installing mailiverse from an origin to a target.
|
|
|
|
|
|
|
|
------- Requirements on the origin build machine ---------
|
|
|
|
|
2013-10-04 22:37:51 -04:00
|
|
|
To install from and build mailiverse from the origin, the origin must:
|
2013-10-04 21:36:02 -04:00
|
|
|
|
2013-10-04 22:59:33 -04:00
|
|
|
1. Have ssh keys:
|
2013-10-04 22:58:21 -04:00
|
|
|
ssh-keygen -t rsa -b 4096
|
|
|
|
|
2013-10-04 22:59:33 -04:00
|
|
|
2. Have git installed:
|
2013-10-04 21:36:02 -04:00
|
|
|
sudo apt-get install git --yes
|
|
|
|
|
2013-10-04 22:59:33 -04:00
|
|
|
3. Have unzip installed:
|
2013-10-04 21:42:26 -04:00
|
|
|
sudo apt-get install unzip --yes
|
|
|
|
|
2013-10-04 22:37:51 -04:00
|
|
|
4. Clone the mailiverse:
|
2013-10-04 21:36:02 -04:00
|
|
|
git clone https://github.com/timprepscius/mailiverse.git
|
|
|
|
|
2013-10-04 22:59:33 -04:00
|
|
|
5. Have oracle java installed:
|
2013-10-04 22:37:51 -04:00
|
|
|
cd mailiverse/install && sudo ./setup-java.remote
|
2013-10-04 21:36:02 -04:00
|
|
|
|
2013-10-04 22:59:33 -04:00
|
|
|
6. Have ant installed:
|
2013-10-04 22:58:21 -04:00
|
|
|
sudo apt-get install ant --yes
|
|
|
|
|
2013-10-04 22:59:33 -04:00
|
|
|
7. Add lines to the hosts file for the target machine:
|
2013-10-04 21:36:02 -04:00
|
|
|
sudo nano /etc/hosts
|
|
|
|
add the lines:
|
|
|
|
SOME-IP-ADDRESS mail.whateverthenameofyourdomainis
|
|
|
|
SOME-IP-ADDRESS whateverthenameofyourdomainis
|
|
|
|
|
|
|
|
This could also be done on a DNS server, if you control one..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
After these steps have been taken you are ready to set up.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--------- Setting up -------------
|
|
|
|
|
2013-10-04 22:58:21 -04:00
|
|
|
1. ./setup-1-dependencies
|
2013-10-04 21:36:02 -04:00
|
|
|
|
|
|
|
This will build enough stuff to generate keys for things.
|
|
|
|
It will will generate default keys, default passwords, etc.
|
|
|
|
You will at some point need to type in "password" a bunch of times, to export a particular
|
|
|
|
key so it can be used with nginx.
|
|
|
|
|
2013-10-04 22:58:21 -04:00
|
|
|
2. ./setup-2-install
|
2013-10-04 21:36:02 -04:00
|
|
|
|
|
|
|
This will install the mailiverse system onto the target.
|
|
|
|
This means it will create user directories, install software, etc.
|
|
|
|
|
|
|
|
|
2013-10-04 22:58:21 -04:00
|
|
|
3. ./setup-3-compile
|
2013-10-04 21:36:02 -04:00
|
|
|
|
|
|
|
This will compile all the sources, jar them up, war them up, etc.
|
|
|
|
|
|
|
|
|
2013-10-04 22:58:21 -04:00
|
|
|
4. ./setup-4-deploy
|
2013-10-04 21:36:02 -04:00
|
|
|
|
|
|
|
This will deploy mailiverse onto the target machine.
|
|
|
|
|
|
|
|
|
|
|
|
---------
|
|
|
|
|
|
|
|
Congratulations, if you have finished these, you should be able to put:
|
|
|
|
|
|
|
|
https://mail.targetmachine/
|
|
|
|
|
|
|
|
And it should work.
|