x

Main chapters

  1. Get started
  2. Workspace
  3. Editor
  4. Question types
  5. Share
  6. Results
  7. Configuration
  8. Installation and updates
  9. Profile and personal settings
  10. Account and billing
  11. FAQs
  12. Development
 Actions

Email bounce tracking system

From LimeSurvey Manual


Introduction

When LimeSurvey shows an invitation as sent, the email has left the mail server. Whether it reaches the inbox depends on the mail servers and spam filters of the recipients. This page explains how to get your invitations delivered and how the email bounce tracking system marks the participants whose invitations were not delivered.

The email bounce tracking system relies on the "delivery failure report" (bounce message) that comes back for an email that can't be delivered. Therefore, it needs a mailbox that receives the bounce messages, with the user name, password and connection details of this mailbox.

Most email and hosting providers offer IMAP or POP3 access to a mailbox. Ask your provider for the details that allow you to use an email address as bounce email address.

LimeSurvey Cloud sends your invitations and reminders through its own mail servers, unless you set up your own SMTP server. See Using LimeSurvey Cloud email server.

Get your invitations delivered

Make your invitations trustworthy

  • Align the domains. Send from an address on the same domain as your survey. For example, send from mail@yourdomain.net when the survey runs on survey.yourdomain.net. On plans with an alias domain, see How do I change my survey site domain?
  • Send through your own mail server. Use the SMTP server of your domain and set up SPF, DKIM and DMARC for it. See Email settings.
  • Invite people who agreed to be contacted. Unsolicited emails are marked as spam more often.
  • Keep the text clear. Use a clear subject, avoid promotional language and keep the opt-out link {OPTOUTURL} in the template. See Email templates.
  • Test first. Send a test to a mail testing service before a large mailing.

When invitations don't arrive

  1. Ask the recipients to check their spam and quarantine folders. Company mail servers can hold bulk mail without telling the recipient. Ask their IT team to allow your sender address.
  2. Compare the domains of the recipients. If addresses at some domains get the invitations and others never do, the receiving domain filters them. This is fixed on the side of the recipient.
  3. Check the Email status of the participants in the participant list. With Bypass participants with failing email addresses on On, participants whose status is not "OK" get no email.
  4. If you send through your own SMTP server, check that its settings still work. Microsoft 365 no longer accepts a user name and password for SMTP and needs OAuth, for example with the AzureOAuthSMTP plugin.
A test email that arrives does not prove that bulk invitations work. Test emails and invitations take different paths.

Contact support

If invitations show as sent but arrive nowhere, neither in the inbox nor in spam, while test emails work, the cause can be on the LimeSurvey Cloud platform. Contact LimeSurvey support and include the survey ID, when you sent the invitations, roughly how many, whether test emails work, an example address that did not receive the invitation, and a screenshot of any error.

Support may ask for your written consent to access your account. Replying "I agree" is enough.

Requirements

The PHP IMAP extension must be installed on your server. You can check this with the Show PHPInfo button on the Overview tab of the global settings:


Global settings Overview tab with an arrow pointing to the Show PHPInfo button below the site statistics


Next, look for an imap section (use Ctrl+F for a quick search). If an imap section is shown, you are good to go:


PHPInfo imap section with IMAP c-Client Version, SSL Support enabled and Kerberos Support enabled


If the PHP IMAP extension is not installed and you have root access to the server, install it as described for your operating system and PHP version, then restart your web server. Without it, Start bounce processing is greyed out with the message "The imap PHP library is not installed or not activated."


How it works

The system was developed to reduce manual work and the human errors that might arise from editing every email status by hand.

When LimeSurvey sends an invitation or reminder, it automatically adds the survey ID and the access code of the participant to the email header.


Raw header of an invitation email with the X-surveyid and X-tokenid headers highlighted


These headers (also known as custom headers) are added to each invitation and reminder that LimeSurvey sends to the participants.

When the email bounces, the bounce message contains the original headers. The system checks the bounce mailbox for new emails and reads the ones that have these custom headers. It sets the Email status of the matching participants in the participant list to "bounced" and shows their email addresses in red.


Setting up the system

The system can work globally (for all surveys) or locally (only for a specific survey), so the settings can be saved in both places. The global bounce settings are on the Bounce settings tab of the global settings (click Global settings in the left sidebar). The following options are displayed:


Global bounce settings with Default site bounce email, Server type IMAP, Server name & port, User name, Password and Encryption type SSL/TLS


  • Default site bounce email: The email address that bounced emails are sent to. For faster processing of the bounced emails, we recommend an address that is used only for the email bounce tracking system.
  • Server type: If set to Off (LimeSurvey Cloud on LimeSurvey Cloud), there is no global bounce processing. Choose IMAP or POP3 to use the email bounce tracking system.
  • Server name & port: Name of the server and, if needed, the port separated by a colon. The port number is typically needed only if the mail server uses a non-standard port.
If your host name is 'imap.example.net' and the port is 993, enter 'imap.example.net:993' as host name. Without a port, LimeSurvey uses 143 (IMAP) or 110 (POP3), and 993 (IMAP) or 995 (POP3) with SSL/TLS.


  • User name: The user name for the IMAP or POP3 account.
  • Password: The password for the IMAP or POP3 account.
  • Encryption type: Off, SSL/TLS or StartTLS, as your email provider says.




To use bounce settings only for a single survey, open the Survey participants page of the survey, click Invite & remind and then Bounce settings. The following page is displayed:


Survey bounce settings with numbered markers on Survey bounce email address, Used bounce settings, the server fields and Save
  1. Enter the Survey bounce email address (1), the mailbox that receives the bounce messages.
  2. Under Used bounce settings (2), choose Use settings below, or Use global settings to use the bounce settings of your site.
  3. Enter the details of the mailbox (3): Server type (IMAP or POP3), Server name & port, User name, Password and Encryption type.
  4. Click Save (4).


Used bounce settings sets which bounce settings the survey uses:

  • None: no bounce processing for this survey;
  • Use settings below: the bounce settings of this survey. Fill in the other fields of the page;
  • Use global settings: the bounce settings of the global settings.

The survey bounce email address is the same setting as Bounce email address in the general settings of the survey.

Note: LimeSurvey connects to your mail server from the IP address of your LimeSurvey site. If your mail server only accepts connections from known addresses, add this IP address as an exception to the configuration or firewall of your mail server.

Using LimeSurvey Cloud email server

With the email method LimeSurvey Cloud (see Email settings), all your emails have the sender address "noreply@limesurvey.org". However, these emails have a reply-to header with your email address, so if someone replies, they write to you directly.

Bounces go to LimeSurvey, not to the bounce email address of your survey or site, so the bounce settings don't apply to these emails. LimeSurvey processes these bounces automatically: you don't need to set up anything or start the bounce processing, just leave the default settings untouched. It might take 10-15 minutes until a bounced email is processed and the related participant is marked.

To process bounces with your own mailbox, send through your own SMTP server and set up the bounce settings as described above.

  Attention : Emails sent through the LimeSurvey Cloud mail servers are checked for spam. Please don't abuse LimeSurvey Cloud for spam: if your emails are classified as spam, your site is banned from sending through the LimeSurvey Cloud mail servers. Make sure that you have the consent of the people you invite. See Emails sent with the LimeSurvey Cloud method.


Starting bounce processing

Before starting the bounce processing, send the email invitations to your participants and wait until the bounce messages have arrived.

Once the email bounce tracking system has been set up, start the bounce processing: open the Survey participants page, click Invite & remind and then Start bounce processing. Start bounce processing is greyed out while Used bounce settings is None, or while it is Use global settings and the global Server type is off.


Survey participants page with the Invite & remind menu open and Start bounce processing highlighted


LimeSurvey checks the unread messages in the mailbox and then shows how many messages it scanned and how many it marked as bounce.

The results are shown in the participant list (you may have to refresh the page). The email addresses of all participants whose invitations bounced are shown in red, and their Email status is changed from "OK" to "bounced". With Bypass participants with failing email addresses on On, the next reminder skips them.


Participant list in which the email address of one participant is shown in red with the email status bounced

FAQ

Does sent mean the invitation arrived?

No. It means the email left the mail server. Spam filters and quarantines on the side of the recipient can still hold it.

Can I send invitations from my own mail server?

Yes. Set the Email method to SMTP in the email settings of the global settings. See Email settings.

Only some recipients get the invitation. Why?

Most likely their mail servers filter it. Ask the recipients, or their IT team, to allow your sender address.

See also