Extension:BounceHandler

The BounceHandler extension allows wiki's to handle bounce emails efficiently, by:
 * Generate a VERP 'Return-Path' on UserMailer::send email invokes.
 * Bounces can be directly fed to the API or fetched from an IMAP mailbox
 * For more details on VERP: VERP

Using composer installed PEAR mimeDecode library to extract the email headers:

 * You can install the [https://github.com/plancake/official-library-php-email-parser Plancake mail parse library] for efficient working of the BounceHandler extension. This can make sure that you strip the correct headers from the bounce email. You can install it by

Recommended method for forwarding bounce emails to the script:

 * If you are running an IMAP service like Dovecot, and you have your bounces listed in a, you can give in the IMAP mailbox credentials in   and later, you can run this command from the   directory to take further actions, like unsubscribing.

Add this to your exim4.conf, under the wikimail router
 * If you dont want to run an IMAP server, and handle the bounce emails directly, you can edit your Exim configurations to send in all the bounce emails to a curl script, which can POST to the extension API, bouncehandler.

You can find more details in [http://tttwrites.wordpress.com/2014/07/11/post-ing-bounce-email-to-a-mediawiki-api-directly-from-exim/ here].