Skip to main content

How To configure bounce setting in Mautic..

How To configure bounce setting in Mautic..

Introduction

Mautic being an opensource marketing solution provides you with various features such as email organization through segmentation and sending targeted emails through campaigns with email monitoring. In order to comprehend the impact of your campaign, you need to track how much of your sent emails are being successfully sent and how many emails are being dropped. You can do this by checking bounced emails in your campaign.

Why do emails get bounced?

Reasons for getting an email bounce notification can be many; from email address being changed, a domain has changed, the recipient's mailbox is full, etc.
Types of email bounces:
  • Hard Bounces:- A hard bounce of an email is caused by permanent non-deliverable conditions such as the recipient's email address is missing or invalid. Many other reasons for a hard bounce to occur are the non-existence of the recipient’s domain, unknown recipient, error in typing the recipient’s email address, blocking of your email server by the recipient’s email server, or any kind of network glitch at the recipient’s end.
  • Soft Bounces:- If an email message is able to find the recipient’s email server and recognize the address, but it is not delivered to the recipient’s inbox and bounced back before delivery, it is classified as a "Soft Bounce." The reasons might include: the recipient’s inbox is full, the recipient's email server is down for some reason, or the email box is abandoned by the user.
With this, we can go forward with setting up email bounce filtration in Mautic.

Step 1: Install and enable php-imap extension

If you haven't yet installed the php-imap extension please follow these instructions for the installation:
  • Install php-imap
$ sudo yum install php-imap // For centos \ RHEL
$ sudo apt-get install php7.0-imap // For ubuntu
  • Enable the extension
$ vim /etc/php.ini
  • Uncomment or Add these lines
extension=imap.so
extension=curl.so
  • Restart the HTTP server
$ service restart httpd\apache // For apache
$ service restart nginx // For nginx

Step 2: Setup Monitored Inbox Settings

Since now we have our PHP IMAP extension enabled we can move onward towards setting up our IMAP inbox with Mautic.
  • Login to the Mautic panel
  • Click on the [cogwheel icon] > [Configuration] > [Email Settings]
  • Set these credentials:
Monitored address - The email address you are going to use
IMAP host - The IMAP enabled email server's hostname
Port - Email server connection port [usually 993]
Encryption - Message encryption [usually SSL]
IMAP username - User name of your email account
IMAP password- Password of your email account
  • Click on [Test connection and fetch folders] to test the connection and populate the Folders from your email server.
  • Bounces - Select the bounces folder from which Mautic will be reading bounce notifications from. This can be set as the Inbox folder of your email directory or you can filter your bounce notifications to the Bounce folder which will be a cleaner way to handle this.
Image
You can use Use custom connection settings? option too, for setting up different email addresses for different Requests.
Note:- By any reason you are not being able to see the Monitored Inbox Settings you can do two things to fix this
  1. Check the php imap option is enabled in the php.ini file or not
  2. Delete the Mautic cache folder and reload the page
// Mautic cache folder
/mautic_setup_path/app/cache/

Step 3: Setup Cron

Edit the Cron file and put the following Cron in it.
$ crontab -e
* * * * * php /path/to/mautic/app/console mautic:email:fetch

Step 4: Create a segment for bounce emails

  • Open Segments section in Mautic
  • Create a new segment named Bounce emails
  • In the Filters section, Select [Bounced - Email] option apply equals operator and set it to yes
Image
  • Save this segment
This segment will be updated when mautic:segments:update Cron is executed

Step 5: Enable Bounce Forwarding

After you set your IMAP server settings, Mautic would be checking for bounce notification emails in your specified directory. To receive these bounce notification emails, you might have to enable this in your email service providers panel.
All you have to do is set the email id which you have specified in the Monitored Inbox Settings to be forwarded the bounce email notifications.

Step 6: Set the webhook to the Mautic mailer callback URL

Depending upon the service provider you use you will have to set the webhook to the Mauitc callback URL.
The callback URL would look something like this:
http://<mauic_installation_domain>/mailer/{service-provider-name}/callback
Similar to the IMAP settings you can use this callback URL as a webhook in order to detect bounced emails.
If you are using a custom SMTP service that is not mentioned in the Email service list provided in the [Mail Send Settings] panel, you will not be able to use this. Regardless of that, if you have followed this tutorial until Step 5, you will be able to detect and interact with the bounced email ids into the Bounce segment.

Process

  • Mautic uses the configured IMAP mail configuration to detect the Bounced email notifications. This is done by the execution of this Cron mautic:email:fetch
  • Mautic uses VERP Variable Envelope Return Path (VERP) to detect emails Return-Path header to check for the bounced email which normally is the from-address you are sending from, which is modified by Mautic
  • The format Mautic expects the return-path should be is
youremail+bounce_receiver-email-id@your-domain.com

  • When an email is bounced it is sent back with the Return-Path header
  • Mautic then uses this detail to set the contact as bounced email.
  • The bounce segment that is created by the user is then updated by the contacts that are marked as bounced. This is done after the execution of the Cron mautic:segments:update
Source :- https://pepipost.com/tutorials/author/hitesh_pandey/

Comments

Popular posts from this blog

HOW TO FIX MAILWIZZ EMAIL NOT SENDING ISSUE ?

HOW TO FIX MAILWIZZ EMAIL NOT SENDING ISSUE ? Hi Folks, As we Know Mailwizz is very good and popular license tool for bulk mail sending and many of us using as selfhosted email autoresponder but after setup once you explore some option and then start sending mail unable to receive by you and you feel email not going out, Q1.How to Check Mailwizz Email  Sending or Not for any user? Ans:- Lets Follow Given Tips for it        a:-Login Your Mailwizz as customer https://yoururl/customer/index.php b:- Find Email Templates Tab or click on Templates direct form CRM dashboard c:- Create Template as Test test or html by email template editor  area and save d:- After save Template Top Right you able to see Send A test email using this template       Hit this option and send test mail on your id and check mail send successfully or not Good Job , Means Your smtp is ok and sending well.. Q2:- How to check Mailwizz...

POWER MTA (PMTA) INSTALLATION STEP BY STEP ON LINUX VPS/DEDICATED SERVER

POWER MTA (PMTA) INSTALLATION STEP BY STEP Installing on Linux Step1:- Download Your PMTA license form port25.com login area. Step2:- Run rpm install command.. # rpm -ivh Powermta******* Step3:- Copy your license key in /etc/pmta/   location # cp -rvf license /etc/pmta Step4:-   PMTA config file setup with add your IP and Domain info as per pmta guide.. # vim /etc/pmta/config  Step5:- Check pmta installation done and running by given command # service pmta restart # service pmtahttp restart Step6:- Done.  Installing on Microsoft Windows Follow guide instruction given by port25.com