For each machine yo need to install the script. The steps to install the scripts are very easy.
1) Open a terminal and go to a
PATH for store the script.
cd $HOME path is a good place.
2) Clone the repository from Github
git clone https://github.com/Kikobeats/server-sandbox.git server-sandbox
Now is the moment to clone one virtual machine in two more :-)
2) Join in the folder with
cd server-sandbox and edit
settings.sh with your favorite editor. (If you haven't idea, you can use
This are the following options:
## DNS Settings DNS_NAME="st.um" PRIMARY_DNS="172.16.22.135" SECONDARY_DNS="172.16.22.137" FORWARDERS="" ## SMTP Settings LOCAL_NETWORK="172.16.22.0/24" RELAY_DOMAINS="$DNS_NAME; um.es" ## OPENSSL Settings USERNAME="josefranciscoverdugambin"
Set the values:
st.umbut you can use others like
ifconfigcommand in terminal (In my case
eth0correspond to private network adapter).
PRIMARY_DNSbut of your secondary server.
255.55.555.0you have a Class C Network and the network IP is
3) Run the script with administrator privileges
sudo sh init.sh
In the Mail service, the mail account is associate with mail user account in the machine. For testing the mail, we recommended you create two accounts in the primary server. You can run:
to create user1 and user2 accounts.