Resource icon

[bd] Mails 1.1.0

No permission to download
I still use 12000 free option at mandrill. Are you sure they are going to suspend the free option?
 
Heard back from Mandrill support.

They are very prompt, have detailed answers, but unfortunately it sounds like once you hit 1,000 entries on the blacklist, it's impossible to get additional entries through polling that endpoint. This is because they only ever return the first 1,000 entries, regardless of status whether active or expired, and b) it's impossible to remove an email from the blacklist... delete only changes it from active to expired, and it'll still be on the list. So even if you filter by 'active', behind the scenes it's just grabbing the first 1,000 emails, then stopping, filtering for active, and returning those. So if the first 1,000 entries have expired, you'll get 'no entries' for the active blacklist, even though there might be a ton more beyond that first 1,000.

So effectively [BD] Mails bounce handling is COMPLETELY BROKEN once your Mandrill account has had 1,000 unique email addresses bounce--regardless of whether they've expired off the blacklist or not.

This explains why people are getting weird BD Mails errors. Either @xfrocks needs to change how he retrieves the list of bounced emails from Mandrill, or Mandrill needs to change the way their blacklist API call works.

Mandrill suggested that the best way to retrieve bounces is setup a webhook, which requires this addon to create an endpoint within the forum... from an API standpoint, it's definitely a better solution than the way BD Mails currently works of repeatedly polling Mandrill's servers for the entire blacklist. However, it might be difficult to add a webhook endpoint within Xenforo addon code, I don't know.

In addition, I still think Mandrill's blacklist API functionality is pretty broken--they should be able to retrieve the first 1,000 active at a time, or even the first 100 active. So you know that if you query for active, and get no results, that you truly have no emails currently active on the blacklist. If you are affected by this problem, it's worth dropping an email to help@mandrill.com and ask them to fix it, so they know that customers are affected by it.

Here's what they said in response to my two bug reports about broken API functionality and broken web UI functionality for the blacklist:
Just send mail via Mandrill SMTP and forward all bounces to a dedicated Gmail address and call for that address via IMAP in Xenforo Bounce processing.
Its rock solid and you don't need to worry about retaining the settings when updating the board!
 
@xfrocks can you clarify how you improved the bounce processing for Mandrill?

Does it still poll the Mandrill blacklist endpoint? (in which case it's still broken)
Or some other method of bounce processing for Mandrill?
 
@xfrocks can you clarify how you improved the bounce processing for Mandrill?

Does it still poll the Mandrill blacklist endpoint? (in which case it's still broken)
Or some other method of bounce processing for Mandrill?
It now uses webhook.

In the "upload" directory of the installation archive, there's both "library" and "bdmails." "Bdmails" was not there previously. Should "bdmails" be uploaded or just "library"? If "bdmails" should be uploaded, should it be on the same level as "library"?

Thanks.
"bdmails" should be in XenForo root (same place with "library", "js" and "styles").
 
I changed your bounced phrase text a bit: We cannot deliver e-mail messages to your address ({email}). The reason given by your provider is "{reason}." Please update your contact details with a deliverable address to keep updated with information from {boardTitle}.

Question: can HTML be used in the phrase text, or does it have to be bbcode? Thanks again.
 
I changed your bounced phrase text a bit: We cannot deliver e-mail messages to your address ({email}). The reason given by your provider is "{reason}." Please update your contact details with a deliverable address to keep updated with information from {boardTitle}.

Question: can HTML be used in the phrase text, or does it have to be bbcode? Thanks again.
Which version of XenForo are you using? Since XenForo 1.3.0, the system shows a message by itself and does not use the add-on phrase anymore. The system phrase is "attempts_to_email_x_have_failed_please_update".
 
Which version of XenForo are you using? Since XenForo 1.3.0, the system shows a message by itself and does not use the add-on phrase anymore. The system phrase is "attempts_to_email_x_have_failed_please_update".

Ah, glad I asked. I'm using Xenforo 1.5.x, the latest.

I will update the phrase "attempts_to_email_x_have_failed_please_update" instead.
 
Which version of XenForo are you using? Since XenForo 1.3.0, the system shows a message by itself and does not use the add-on phrase anymore. The system phrase is "attempts_to_email_x_have_failed_please_update".

The phrase text there is "Attempts to send email to {email} have failed. Please update your email address."

That's pretty bare-bones and won't help some of the technology novices on my site. (How do I update my email address? they will ask.)

How about if I add this text at the end: You can update your email address <a href="http://poetrycircle.com/forum/account/contact-details">here</a>. Or perhaps this: <a href="http://poetrycircle.com/forum/account/contact-details">Click here</a> to update your email address now.

Will that work, or will there be issues for folks who are presented with this message?
 
The phrase text there is "Attempts to send email to {email} have failed. Please update your email address."

That's pretty bare-bones and won't help some of the technology novices on my site. (How do I update my email address? they will ask.)

How about if I add this text at the end: You can update your email address <a href="http://poetrycircle.com/forum/account/contact-details">here</a>. Or perhaps this: <a href="http://poetrycircle.com/forum/account/contact-details">Click here</a> to update your email address now.

Will that work, or will there be issues for folks who are presented with this message?
It does that by default.

Screen Shot 2015-10-20 at 2.52.48 AM.webp
 
Just send mail via Mandrill SMTP and forward all bounces to a dedicated Gmail address and call for that address via IMAP in Xenforo Bounce processing.
Its rock solid and you don't need to worry about retaining the settings when updating the board!
Hi - I use Mandrill and have a gmail
Account for bounced emails. Can you explain the imap thing and how this all comes together? The bounced thing always confused me.
 
@xfrocks I really appreciate the update.

Most important question, which @jeffwidman mentioned here. Does this now remove an address from the Mandrill block list once it's marked as bounced in XF? If not, users get stuck in an endless loop after marking a message as spam.
 
Back
Top Bottom