How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!)
Tags: tools, emailmarketing, aws
Published: 2022-06-28 14:52:47

Mautic is the WordPress equivalent of Marketing. It is an open-source software that you can host on your own server and send marketing campaigns to your contacts.

### Feature Of Mautic

-   Lead Management
-   Multi-channel campaigns
-   Contact segmentation
-   Focus item
-   Contact scoring
-   Page builder
-   Email builder
-   Mautic forms
-   User activity tracking
-   Dynamic content
-   Cross-platform integration

More than 200K organizations use [Mautic](https://www.mautic.org/) for marketing automation. It is a very powerful tool for any kind of audience size and any volume of E-mails you send out to your contacts.

If you want to know more about Self-Hosted and also Know about How much cost need for Self-Hosted, You can visit this  [link](https://serveravatar.com/set-up-self-hosted-e-mail-marketing-automation-mautic/).

Today We will set up a Self Hosted Mautic Email Marketing Automation Tool with Amazon SES, Amazon EC2, and  [ServerAvatar](https://bit.ly/3u8Hx9n).

Before We start setup Mautic with Amazon EC2, You need to know more about  **ServerAvatar**.

## What is ServerAvatar?

ServerAvatar is Self Managed Cloud Hosting Provider. You can configure your server without touching the command line or any hustle. You can install Optimize LAMP, Optimize LEMP, or Optimize OLS Stack.

Using ServerAvatar, You can manage any PHP application, you can manage cron jobs, databases and database users, application users, and many other things you can do with your server through ServerAvatar.

[**You can use the code "TECHVBLOGSME" to redeem $10 credits.**](https://bit.ly/3NpLkpB)

![Self-managed Cloud Hosting Solution - ServerAvatar](https://res.cloudinary.com/techvblogs/image/upload/v1656366243/blog/set-up-free-self-hosted-email-marketing-with-mautic/Screenshot-72_csagbg.png)[**Know More About ServerAvatar**](https://bit.ly/3u8Hx9n)

### Why We choose Amazon EC2 For Self-Hosted Email Marketing Tool?

If you use Amazon SES with AWS EC2, you will get Free 60K Outgoing E-mails per month.

### Prerequisites
-   Amazon EC2 Account
-   Amazon SES
-   Ubuntu 18.04 or 20.04 Server
-   ServerAvatar Account

Let's Start with Server Creation Process.

## 1. Create a Server instance in Amazon EC2

First Of All, You must have an account in Amazon Web Services. Without an account, you cannot create a server instance in Amazon EC2.

Let's Create a Server instance in Amazon EC2.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656368120/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-1_hg22sn.jpg)

After selecting an OS Image, Select an instance type as we display.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656371117/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-7_dsayu1.jpg)

Create a Key Pair For Login into the Server.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656368560/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-2_nwshzx.jpg)

After Generating Key Pair Save that Key into your system.

Most Important is a firewall in the Amazon EC2 instance. Amazon EC2 uses a network-level firewall so we need to allow some ports to access Server.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656369358/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-3_rgdfge.jpg)

After clicking on Edit Button, You can see a form with different input fields. In that form, you need to add one more rule for ServerAvatar. ServerAvatar needs 43210 port to communicate with your server. so you need to allow this port in Firewall.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656369602/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-4_tkjvnp.jpg)

After clicking on "Add security group rule", You need to add the following data as we mention in the image.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656370335/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-5_tsiwta.jpg)

In the Last Step, Just Click on the Launch Instance.

After Successfully Instance creation you can see instance like this in your AWS EC2 Dashboard.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656370905/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-6_odvqd2.jpg)

Now We need to connect this Server to ServerAvatar for configuring the Web Server, Database, PHP, and other things.

## 2. Connect Amazon EC2 Server instance to ServerAvatar

Before connecting a server to ServerAvatar You must have an Account in ServerAvatar. If you have already an account in ServerAvatar then just log in. If you don't have an account in ServerAvatar then  [Register into ServerAvatar](https://app.serveravatar.com/register).

After Login into ServerAvatar, You will be redirected to Dashboard. In the Dashboard, You will see cards for Connect a Server.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656371833/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-8_tbz7kb.png)

After Clicking on "Connect a server", You can see a form with different input. You need to enter data in the input field as your requirement.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656372717/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-9_fcvc6j.jpg)**Note: You need to select LAMP or LEMP Stack as your Tech Stack. OLS Stack is not supported for mautic.**

In the last step, you need to select a management plan as per your requirements.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656372891/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-10_rbjrs4.jpg)

After Clicking on "Connect Now" button, You will be redirected to Connect Server Page. On that page you can see some command, this command needs to execute on the server for configuring with ServerAvatar.

**Note: You must have select a "Pro Plan" for Create Mautic Application.**

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656373467/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-11_ddtjjf.jpg)

Run that command as we mention in a screenshot with instructions. You need to run that command on Server. After Running that command on the Server, You can see the Installation Process Page of that Server. You can see the live installation status of your server.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656373873/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-12_foeypu.jpg)

Now, Our Server is ready to host PHP applications.

### 3. Get SMTP detail from Amazon SES

Go to your AWS Console and Search Amazon SES

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656375016/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-15_svqktf.jpg)

In the next step, Create an Identity for an email address. Here we use an email address you can use email address or domain.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656374484/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-14_ffewxv.jpg)After Clicking on "Create Identity" Button, You will receive an email to verify the email address from Amazon SES. Verify your email address.

Now We need to generate SMTP credentials for Our Mautic Application.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656376632/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-16_qnufwx.jpg)

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656376741/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-17_szkvth.jpg)

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656376863/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-18_ytdiee.jpg)Now Copy SMTP Username and Password. We need this SMTP credential while creating mautic application.

### 4. Create an Application in ServerAvatar

In this step, We need to create an Application in ServerAvatar.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656377181/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-19_hajf18.jpg)

In Application Form, There is some input for creating application on Server.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656377571/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-20_we70pb.jpg)When you create an application, ServerAvatar will create directories, users, set permissions, and manage server configuration files for that site.

Follow this short [step-by-step tutorial](https://serveravatar.com/docs/Applications/create_custom_php_application) to learn How to create an application on your server with ServerAvatar.

Once you have created an application, You will be redirected to the application panel where you can manage all the aspects of your site like Files, Logs, PHP settings, Backups, Cloudflare integrations, Staging area, DNS, and much more.

The application panel will look something like the following image.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656377683/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-21_ujdpyv.jpg)

Once you have created an application, You can install Mautic on that application with Mautic Auto-installer.

For that, Click on the **Auto-deploy** option from the left sidebar of an application panel. Once you are there, You will see many auto-installers just like the following image.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656377785/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-22_ihgxuq.jpg)Click on the **Install Now** button on the Mautic card. After that, You will see a form with 3 sections. Just like the following image.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656378016/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-23_paluwx.jpg)In the first section, Enter the information of the **Admin** user. You would have to provide the first name, last name, Login username, Login password, Admin E-mail, and the title of your Mautic Installation. Ignore the database server if you do not know what to install.

> A Username should not be the E-mail, It should be an alpha numeric string.

In the second section, Select the desired PHP version. By default, ServerAvatar will only allow you to install Mautic on supported PHP versions.

In the third section, Enter the SMTP information you received from your SMTP provider.

![How to set up Free self-hosted Email marketing with Mautic (60k Emails per month!) - TechvBlogs](https://res.cloudinary.com/techvblogs/image/upload/v1656378266/blog/set-up-free-self-hosted-email-marketing-with-mautic/step-24_uicldn.jpg)

Once you have provided all the information, click on the **Install Now** button.

**Once the installation is started, It will take around 30 seconds to install Mautic for you. It will also create a database on the server and connect it with the app for you.**

Once installed, You can log in to the admin area of your Mautic installation and start E-mail marketing!

**Congratulations,** You now have a self-hosted E-mail marketing and Automation solution on the cloud.

## Conclusion

Mautic is used by more than 2,00,000 organizations for E-mail marketing automation. Lots of big organizations use and support Mautic for High volume requirements. E-mail marketing and automation are very affordable that way.

Finally, I hope you found an awesome self-managed self-hosted E-mail marketing solution. If you have any questions, Feel free to contact us. We will be more than happy to help you with this topic.