Skip to main content

Mautic – Opensource Marketing Email Automation

Logo MauticFor a project (That is going to be released within few months), I had to find a good marketing automation tool. There is plenty of them out there actually, like Mailchimp or infusionsoft. But none of them are open source….None expect one – Mautic.


If you are not familiar with the concept, a marketing automation tool will help you run for example, your email marketing campaign based on your visitors behavior. For example, if you had an account on this blog and were reading those lines, I could ask such marketing automation to trigger a pre-written email to your email box to ask you: “Need a hand to install Mautic?”. As you spent some time reading those lines, I could presume you are interested in Mautic and could sell you my services. (Which I don’t by the way!). I could also wait 2 days after you opened this email, to send you an incredible offer, just for you Mister Smith! If also I’ve noticed you’ve checked several times some pages on my blog treating about Mautic or any others similar software, I could “score” your potential in points and after a certain amount of points, have my Sales call you directly.

This is a pretty common practice available for Small to large businesses. Although you may feel quite “spied”, this kind of tools are greatly appreciated by professionals or entrepreneurial as they can save a significant amount of time while providing a good service to their customers. Great for productivity.

But wait, this kind of tool is not only about businesses, it could be use in many different ways, like for schools, associations or any field that could benefit in email automation.

So, as you know now, Mautic is probably the only open source Marketing Automation tool out there (If you know any others, please share!) and is released under the GPL v3 license. They have an hosted account for a fee (Or free if <2500 leads and 3 user accounts).

Mautic dashboard


Mautic has a great design and tons of features like:

– Calendar (To keep track of all the campaigns you are running)

– Leads (To track bothanonymous and known leads with key metrics like page views, time spent on site, etc…)

– Campaign (Drip program creation, campaign builder, etc… to define the actions and events your leads will follow, in an automatic way)

– Forms (to easily create your landing pages to collect key informations while promoting your offer/service)

– Points (to score your leads based on how well they responded to your campaigns, this could help to trigger different campaigns afterwards)

– Report (To get an overview of the success of your campaigns and help you to improve those)


Mautic campaign overview report

They also have plenty of plugins to interact with 3rd party applications like a CRM, dropbox, gmail, zendesk, etc.. and many more).

They are actually looking at volunteers to translate Mautic in as many languages as possible (They use Transifex to manage them), but currently only English, French, Spanish, Thai and Czech are fully translated. Italian and German might follow soon.

Their application is freely accessible on Github and they have a quite active forum so don’t hesitate to post a message there.


Mautic is surprisingly, easy to install. If you don’t want to use their hosted account, simply follow this tutorial



You will first need a LAMP server. If you don’t have one ready, no problem, simply check this previous tutorial on how to install Apache, MySQL and PHP.


1) Download and unzip their latest version

As of today, their current version is the 1.0.3. You can download their latest one by running the following commands:

then unzip it. (If you don’t have tools to unzip, simply install the unzip package) and run:


2) Change permission folder

To avoid having a blank page at the installation, you need to provide rights to your apache user (www-data), simply run as root (or with sudo):


3) Install php5-intl

You will need to install the php-intl module to have the internationalization functions. To do so, run as root (or with sudo)

and restart apache

4) Create a dedicated virtualhost

To better tweak Mautic and to have a more userfriendly URL, I suggest you to create a dedicated virtualhost (vhost) file.

Here is mine that you could reuse.

To do so, you will need:

1) Create a A redirection in your DNS server/registrar with something like mautic.domain.tld to your IP

2) Create your virtualhost as following:

In /etc/apache2/sites-enabled/, create a file called mautic (or reuse one of yours), In root:

and paste the following content:

Adapt the content (Servername, webmaster email, directory,…). If you want to use SSL, you will need to tweak a bit this virtualhost, similar to all my previous articles.

When done, save the file (CTRL+X then Yes) and reload apache: (In root)

As you can see, I’ve set a dedicated value for PHP, as you might have an error if your date.timezone is not set in your php.ini.

In this case you can either modify your php.ini to add this dedicated value inside your vhost.


5) Launch the web installer

Then you simply need to follow the web installation at mautic.domain.tld (Or http://yourip/mautic if you haven’t created a vhost)

Mautic installation check

The first page will check if your system pass the requirements. If not, you will need to fix those issues.

You will then need to configure your MySQL database (I suggest you to use PHPMyAdmin to easily create such database and user) and finally, you will need to setup your email configuration (SMTP server? or use some predefined configurations, like Gmail, Amazon SES, etc…)

Email configuration

And you’re good to go!

Although they don’t have much, you can still check the Mautic documentation for more info on this great Email marketing automation.


Let me know if you know others great opensource applications.

35 thoughts on “Mautic – Opensource Marketing Email Automation

  1. Great find 🙂 . great tutorial. Every time i came to visit your website never been disappointed 🙂 keep up good work .

  2. Thanks for publishing.

    On a shared server at Hostgator, I installed the software using FTP and the navigated to, which directed me through the full install process.
    Easy Peasy.

    1) Create a database.
    2) FTP full mautic folder (i.e. 1.0.5) to root folder
    3) rename folder to something else (i.e. /myMautic)
    4) navigate to:
    5) Follow instructions
    5a) at the database screen you will need this info:
    * database_name
    * database_user
    * database_password
    * database port – can leave at default number
    * database table prefix – make this up
    * prefix for database backups – can leave alone

    Thanks again.

  3. Thank you for this tutorial. It’s great.

    For testing purposes I want to run Mautic in a VM alongsite my default apache “site” (which runs on default port 80). I have changed the line to . When I ssh into my server ( and run “curl” I get HTML of my default (port 80 site). But when I “curl” I get “curl: (7) Failed to connect to port 81: Connection refused”.

    I have followed your every step (with Ubuntu Server 15.04) and I didn’t get any errors in the process. Yet, I cannot connect to the site. What am I doing wrong? (PS: You can contact me on my e-mail, if it’s faster.)

    1. Hi Brian,
      Not sure the issue there, although running mautic on a different port might not help.
      How about just using a subfolder of your default site? Like ?

      Hope it helps

  4. Thank you, Appreciate the effort on putting this together, there is no much data on the installation, and you brought the core, thanks a lot.
    I was able to install it on debian 8.2.
    For the sites-enable, instead, i created/saved a file named moutic.conf at ./sites-available and I did the #a2ensite moutic.conf and it worked perfectly fine. For the DB at SQL i used the following:

    #mysql -p
    >CREATE USER username@localhost IDENTIFIED BY ‘userpasswd’;
    >CREATE DATABASE db_name;
    >GRANT ALL PRIVILEGES ON db_name.* TO “username”@”localhost” IDENTIFIED BY “userpasswd”;

    Keep up the good work, thank you

  5. I followed all the steps up to 3, decided not to create vhost and received this:

    Not Found
    The requested URL /mautic was not found on this server.
    Apache/2.4.7 (Ubuntu) Server at Port 80

    Do you know what could be causing the issue?

  6. Hi,


    DocumentRoot /var/www/mautic

    Options FollowSymLinks
    AllowOverride All

    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

    php_value date.timezone “India/New Delhi”


  7. I’ve gotten everything to work up until step 5, when I put mautic.domain.tld in my browser, then it says the server not found.

  8. Hi I notice this requires Linux?. if am running a windows there any support?. please advise. thank you.

    1. Hi Raj,
      Unfortunately Mautic is a Linux based application. They don’t support Windows.
      And most of the servers out there are using Linux anyway. (Highest market share by far, probably >80%)

      So I won’t be able to help you on this. But if you need help to set up a Linux server, count on me!

  9. Went beautifully except there is no API Credentials showing in the Configuration menu – even though I cleared the cache and enabled API

  10. I cannot attach the Mysql to the instance on AWS using RDS… I have followed directions perfectly and reinstalled 2x. I keep getting the following error message. I am new at this so it is entirely possible I am missing it.

    An error occured while attempting to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory

    thank you

Leave a Reply

Your email address will not be published. Required fields are marked *