Actions

Email bounce tracking system: Difference between revisions

From LimeSurvey Manual

mNo edit summary
mNo edit summary
Line 7: Line 7:


<!--T:3-->
<!--T:3-->
The mail bounce tracking system (available in v1.91 or later) is capable of tracking down and marking the emails that were not delivered to the recipients (participants). The system relies on the "mail delivery notification failure report". Therefore, it needs an email address where the emails can be sent to in order to track the bounces . Along with the address of the account, the credentials of the account are also required, with the connection details.
The mail bounce tracking system (available in v1.91 or later) is capable of tracking down and marking the emails that were not delivered to the recipients (survey participants). The system relies on the "mail delivery notification failure report". Therefore, it needs an email address where the emails can be sent to in order to track the bounces. Along with the address of the account, the credentials of the account are also required as well as the connection details.


=Requirements= <!--T:4-->
=Requirements= <!--T:4-->


<!--T:5-->
<!--T:5-->
The php5-imap module must be installed on your server. You can check if this is the case by looking at the '''Show PHPinfo''' button, found on the [[Global settings|global settings]] page of your LimeSurvey installation, under the [[Global settings#Overview|Overview]] tab:
The <u>php5-imap</u> module must be installed on your server. You can check if this is the case by looking at the '''Show PHPinfo''' button, found on the [[Global settings|global settings]] page of your LimeSurvey installation, under the [[Global settings#Overview|Overview]] tab:




Line 35: Line 35:


<!--T:11-->
<!--T:11-->
The basic idea behind this system is that when sending the mail, the mail bounce tracking system automatically adds a survey-id and token-id to the mail header without the notice of the administrator.
The basic idea behind this system is that when sending the email, the mail bounce tracking system automatically adds a survey-id and token-id to the mail header without the notice of the administrator.




Line 46: Line 46:


<!--T:14-->
<!--T:14-->
When the mail is bounced back, the original header along with the Delivery notification header is received. The system then checks for new mails and parses the mails that have these custom headers and mark the wrong e-Mail id in the red font color in the tokens table.
When the mail is bounced back, the original header along with the ''delivery notification header'' is received. The system then checks for new mails and parses the mails that have these custom headers and mark the wrong e-mail addresses in a red font color in the survey participants table.


=Setting up the system= <!--T:15-->
=Setting up the system= <!--T:15-->

Revision as of 12:07, 30 October 2017

Introduction

The mail bounce tracking system (available in v1.91 or later) is capable of tracking down and marking the emails that were not delivered to the recipients (survey participants). The system relies on the "mail delivery notification failure report". Therefore, it needs an email address where the emails can be sent to in order to track the bounces. Along with the address of the account, the credentials of the account are also required as well as the connection details.

Requirements

The php5-imap module must be installed on your server. You can check if this is the case by looking at the Show PHPinfo button, found on the global settings page of your LimeSurvey installation, under the Overview tab:



Next, look for an imap section, like this. If an imap section is shown, you are good to go:



If you don't have php5-imap installed and you have root access to the server, you can install it following the proceudure specific to your distribution. For example, check this link if you use Debian. Just remember to restart your web server once it is installed (e.g. run "apache/usr/sbin/apache2ctl restart" in terminal).

How it works

The basic idea behind the development of the system was to reduce the manual work and reduce the possible human errors that might arise from manually editing every field.

The basic idea behind this system is that when sending the email, the mail bounce tracking system automatically adds a survey-id and token-id to the mail header without the notice of the administrator.



These headers (also known as custom headers) are added to each invitation email sent via LimeSurvey to the survey participants.

When the mail is bounced back, the original header along with the delivery notification header is received. The system then checks for new mails and parses the mails that have these custom headers and mark the wrong e-mail addresses in a red font color in the survey participants table.

Setting up the system

The system is capable of working at the global level or survey level, thus the settings can be saved accordingly. The global settings can be saved under Global Settings -> Bounce Settings.


The local settings can be entered under the token management of that particular survey.


As you can see in the screenshot above the setting to be used in that particular survey is to be selected. Available options are

  • No settings to be used
  • Use settings below (survey-specific)
  • Use global settings


Starting Bounce Processing in v3.0

Starting Bounce Processing in v2.5

In version 2.50+, once the bounce processing system has been set up, you can start bounce processing. from the Survey home page: Invitations & reminders -> Start bounce processing.



After selecting this option, a progress indicator will be displayed during the process, followed by a final processing status summary.

{{Alert|title=Attention|text=Some releases of v2.50+ do not correctly display this menu choice and the issue was fixed in build 160714 released on July 14, 2016

Starting Bounce Processing in earlier versions

Once the settings have been set, you can start the bounce processing by clicking on the bounce processing icon located on the Token browser toolbar as shown below:



After clicking the icon, you will be presented with a popup which shows a progress meter.



Wait till the process is done. Once completed, the result of the scan will be shown on the browse responses page (you might have to manually refresh the page to actualize it). All the entries whose invitations were bounced will have their e-mail addresses marked in red font. Also, their Email status is changed from "OK" to "bounced":