This server will be used to run:

Scenario 1 - Internal PMTA

  • EMS (Mumara recommended)
  • PowerMTA

Scenario 2 - External PMTA

  • EMS (Mumara recommended)
  • PowerMTA Management Console (optional)

System Requirements

You must have a clean/fresh installation of CentOS 6 x64 MINIMAL

Hardware Requirements

  • CPU 1
  • Minimum of 4 GB RAM
  • 20 GB HDD

My Main server specifications (Mumara Pro and PMTA Management console)

  • CPU 6 cores @ 2.40GHz
  • 24 GB RAM
  • 600 GB SSD

Notes

Change srv1 to anything you want (example: box, mail, server, chipotle)
Change example.com to your domain.tld
Change YOUR_IP to your IP
Change emsuser to your_user_name (usually first 8 characters of domain name)
Change emsdir to some directory (example: ems, mumara, email)
Change mumara.zip to file name of your download
Replace X in pmtaX.zip and PowerMTA-X.rpm with a version of PowerMTA you are using
Use search and replace 🙂

Please use the Bitvise SSH client - Download it for free

DNS Records

Make sure you have at least A record set for the domain Mumara will run on

Here are all the DNS records for each domain

Type Name Value Status
A @ SERVERIP ON
A www SERVERIP ON
A srv1 SERVERIP OFF
A mail SERVERIP OFF
AAAA @ SERVERIPv6 ON
AAAA www SERVERIPv6 ON
AAAA something SERVERIPv6 OFF
MX @ mail.@  
TXT @ v=spf1 mx a ptr -all
SPF @ v=spf1 mx a ptr -all
TXT dkim._domainkey don't know yet (system emails)
TXT key._domainkey don't know yet (MTA only)

Start here

TYPETYPE

# hostname srv1.example.com

EDIT

# nano /etc/sysconfig/network

CHANGE

# HOSTNAME=srv1

EDIT

# nano /etc/hosts

CHANGE

# YOUR_IP srv1.example.com srv1

TYPE

# service network restart

TYPE

# yum -y install wget
# yum -y update

WAIT FOR FINISH AND REBOOT TYPE

# reboot

INSTALL CONTROL PANELTYPE

# cd /usr/local/src
# wget http://centos-webpanel.com/cwp-latest
# sh cwp-latest

Wait for the installation to finish and reboot

Save the login info you get at the end.

Login to Control Panel

Open the browser and log in to control panel

GO TO

https://YOUR_IP::2031

CONFIRM CERTIFICATE CONFLICTS AND LOGIN
USER ROOT
PASS YOUR_ROOT_PASS

GO TO

https://YOUR_IP:2031/admin/index.php?module=settings

Change Root Email to your email and save

GO TO

https://YOUR_IP:2031/admin/index.php?module=date_time

Set Timezone and remember your selection

GO TO

https://YOUR_IP:2031/admin/index.php?module=file_editor&file=/usr/local/php/php.ini

Search for date.timezone. Uncomment, change to your above selection, and save

GO TO

https://YOUR_IP:2031/admin/index.php?module=phpini_editor

Change

NOTE: SAVE AFTER YOU EDIT EACH LINE!!!

memory_limit = 512M

upload_max_filesize = 128M

post_max_size = 256M

max_execution_time = 60

GO TO AND ADD USER (@ and www A records must be set)

https://YOUR_IP:2031/admin/index.php?module=new_account
  • Add a domain where Mumara will run
  • Set username (For the sake of this guide we'll assume the username is emsuser)
  • Set password
  • Enter your email
  • Check AutoSSL
  • Click 'Create'

Create SQL Database for Mumara

GO TO

https://YOUR_IP:2031/pma

LOGIN AS ROOT AND USE THE SQL ROOT PASSWORD YOU GOT AFTER THE CONTROL PANEL INSTALL

In the top menu click on 'User Accounts'

Click 'Add user account'

Enter:

  • User name: mumara
  • Click 'Generate' and copy the password
  • Check 'Create database with the same name and grant all privileges.'
  • Check 'Grant all privileges on wildcard name (username\_{68e7e9a41b18d877ce48f6781f70190f02eae72a8a860d5cd4744b65c53b0402}).'
  • Click the small 'Go' button in the bottom right

Upload Mumara to /root/ over SFTP

mkdir /home/emsuser/emsdir
cp /root/mumara.zip /home/emsuser/public_html/emsdir/
cd /home/emsuser/public_html/emsdir/
unzip mumara.zip
rm mumara.zip /root/mumara.zip
chown -R emsuser: *

Upload config-pro.php and/or config-esp.php if you are using a nulled version of Mumara to /root/

TYPE

cd /root/
mv config-* /home/emsuser/public_html/emsdir/inc/

EDIT

nano /etc/csf/csf.pignore

ADD AT THE BOTTOM

# Add this two lines if you use PMTA Management console on this server
exe:/opt/pmtamc/pgsql/bin/postgres
user:pmtamc
# Add this line and change username to username where Mumara runs
user:emsuser/

Restart

service lfd restart

Install Mumara

GO TO

https://example.com/emsdir/
  • Choose login email and password
  • Enter 'mumara' for user and database name
  • Paste the password you generated in PHPMyAdmin before
  • Change http://example.com/emsdir/ to https://example.com/emsdir/
  • Click 'Install'

If you are using nulled Mumara do this over SSH

TYPE

cd /home/emsuser/public_html/emsdir/inc/

FOR PRO VERSION (RECOMMENDED)

cp config-pro.php config.php

FOR ESP VERSION

cp config-esp.php config.php

Login to Mumara

GO TO

http://example.com/emsdir/cron_status.php

COPY LOCATION OF cronjob.php (MAKE SURE YOU DROP /bin/php)

GO TO

https://YOUR_IP:2031/admin/index.php?module=crontab
  • Under 'Add Common Cron Jobs'
  • Under settings select 'Every minute (* * * * *)'
  • For command enter /usr/local/bin/php /home/emsuser/public_html/emsdir/cronjob/cronjob.php > /dev/null
  • Click 'Save changes'

You are done with Mumara for now. Go to Part 2 of this Free DIY Guide and get at least one MTA server ready.