I installed this mod but i use mandrill as mailprovider. I enabled an option in mandrill, which sends the bounced mails to a specific address, which works great,
But: The mails, which will be collected by the Bounced-Script via imap are only deleted and not saved to the database.
the message text of my bounced mail looks like this:
Code:
Hello, this is the mail server on mail135.atl41.mandrillapp.com.
I am sending you this message to inform you on the delivery status of a
message you previously sent. Immediately below you will find a list of
the affected recipients; also attached is a Delivery Status Notification
(DSN) report in standard format, as well as the headers of the original
message.
<user@address.com> delivery failed; will not continue trying
in beh_maillist.php i found:
Code:
// Try an alternate match
if (!preg_match('/^.*@.*$/m', $body, $matches) OR $from['mailbox'] != 'Mailer-Daemon')
This should collect the email from the mail body, right? but why it doesn't work with mine?
Thanks alot!
//EDIT
Got it to work for me. If you get the bounced mail forwarded as shown above, change the code in forum/includes/cron/beh_maillist to this:
around line 174
Code:
// Try an alternate match
if (!preg_match('/[a-z\d._%+-]+@[a-z\d.-]+\.[a-z]{2,4}\b/i', $body, $matches))
around line 186
Code:
// Valid bounced email, go!
$from = trim($matches[0]);