Actions

Email bounce tracking system: Difference between revisions

From LimeSurvey Manual

mNo edit summary
No edit summary
Line 149: Line 149:


<!--T:25-->
<!--T:25-->
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 email addresses marked in red font. Also, their '''Email status''' is changed from "OK" to "bounced":
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 email addresses marked in red font. Also, their '''Email status''' is changed from "OK" to "bounced".




<!--T:26-->
<!--T:26-->
For the old LimeSurvey versions, the bounced emails will look like this:
<center>[[File:table.png]]</center>
<center>[[File:table.png]]</center>


 
For those who use 2..06 or newer, the bounced emails will look like this:
<center>[[File:Red bounced email addresses.png]]</center>
<center>[[File:Red bounced email addresses.png]]</center>


</translate>
</translate>

Revision as of 15:19, 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.

Most email and hosting providers offer SMTP to send emails. The only thing for you to find out are the SMTP details that allow you use that email address as a bounce email address.


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 email bounce tracking system automatically adds a survey-id and token-id to the email 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 email is bounced back, the original header along with the delivery notification header is received. The system then checks for new emails and parses the emails that have these custom headers. It changes the font color of the wrong email addresses from the survey participants table in red.


File:Red bounced email addresses


Setting up the system

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



  • Default site bounce email: This is the email address where bounced emails will be sent to. For a faster bounce back processing, the email address box should be limited to bounce back only.
  • Server type: If set to "Off", no bounce processing functions will be available. Choose either "POP" or "IMAP" to make us of LimeSurvey email bounce tracking system.
  • Server name & port: Name of the server and (if needed) the port separated by a colon. The port number isn't typically needed unless the email host uses a non-standard port.
If your host name is 'smtp.server.net' and the port is 143, then write 'smtp.server.net:143' as host name. For security reasons we currently only allow the following ports numbers: 110, 143, 587, 993 and 995.


  • User name: The user name for the POP/IMAP account.
  • Password: The password for the POP/IMAP account.
  • Encryption type: If encryption is used, please set the right one here (SSL or TLS).


If you want to apply only on a single survey a set of bounce settings, access the desired survey -> go to the survey menu and click on the Survey participants tab -> check the main toolbar of the page and click on participants#Invitations & reminders|Invitations & reminders option -> select from the dialog Bounce settings. The following page will be loaded:



The additional option is represented by the Used bounce settings. Here, you can choose whether you use:

  • no bounce settings;
  • the local bounce settings. If picked up, you will have to fill out the rest of the local bounce settings fields;
  • the global bounce settings. In this case, the bounce settings of your LimeSurvey installation will be used.
Note: LimeSurvey will initialize the SMTP connection from the IP address of your LimeSurvey installation. Just ping the URL of the LimeSurvey installation to find out which one it is. In case you have your SMTP server locked down you will need to add this IP address as an exception to your SMTP configuration/firewall.


On using LimeSurvey PRO email server

If you are using the LimeSurvey Professional email server, all your emails will have the sender address "noreply@limesurvey.org". However, these emails will have a Reply-to header with your email address. So, in case someone tries to reply, they will write you directly.

Although this method is set up very quickly (just enter global settings and set 'LimeSurvey' as your preferred mail type), it has one downside: if an email cannot be transmitted to the email receiver and bounces back, then you won't get any notifications whatsoever.

  Please don't abuse LimeSurvey for spam or we will have to lock your account. Make sure that you have the general consent of people you want to send invitations to.



Starting Bounce Processing in v3.0

In version 3.0+, once the email bounce tracking system has been set up, you can start bounce processing by accessing the home page of the survey -> select Survey participants tab from the survey menu -> click on Invitations & reminders (located on the toolbar) -> Start bounce processing.



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

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.

  Attention : 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 email addresses marked in red font. Also, their Email status is changed from "OK" to "bounced".


For the old LimeSurvey versions, the bounced emails will look like this:

For those who use 2..06 or newer, the bounced emails will look like this: