Anyone have an easy way to sync invalid emails back from one of the mail checkers?

fly

Well-known member
I'm trying to clean my email list and then sync the status of bounced users back into xf. Is there an easy way to do that?
 
It seems to me that this addon by @DragonByte Tech is the easiest route to go:


SMTP Email Validation: Email addresses are automatically validated by connecting to the mail server via SMTP. This feature helps eliminate bounced email before they get a chance to bounce. Validation happens automatically, or you can manually validate them via CLI by running php cmd.php dbtech-mail:validate-emails &lt;numEmails&gt; (where <numEmails> is the number of email addresses you wish to validate).
 
Thanks. I do own that plugin, but am not actually sure on how to use it. TBF, I've never taken more than a cursory look, but many of his plugins seem to be very dense in options but light of documentation.
 
Thanks. I do own that plugin, but am not actually sure on how to use it. TBF, I've never taken more than a cursory look, but many of his plugins seem to be very dense in options but light of documentation.
A fair assessment, as I hate writing documentation and most of the time it's self-explanatory :)

As for the email validation, I'm actually testing v5.1.0 Beta 1 at the moment which removes the SMTP Email Validation feature and replacing it with external APIs. The following APIs will be supported:
  • Emailable
  • MailboxLayer
  • MillionVerifier
  • UseBouncer
The reason for this change is that remote mail servers are now blocking the SMTP Validation method, leading to either false positives or outright blacklisting of your server's IP address.

I'll be releasing the beta version along with writing up a small tutorial for how to use the system, at some point this week.
 
Well that's fantastic. Of course I just bought 5,000 credits from EmailListVerify, but that's fine. As long as you have a way of doing it!
 
Well that's fantastic. Of course I just bought 5,000 credits from EmailListVerify, but that's fine. As long as you have a way of doing it!
My experience with EmailListVerify is that it's not reliable unfortunately. It was marking a lot of valid addresses as invalid and some invalid addresses as valid.

I'm very interested to learn how reliable the 4 above services are.
 
I guess I could always use some third party SMTP service that I don't care about and just spray out emails to my user list that hasn't been cleaned in years. But that doesn't seem like a very nice thing to do to a provider.
 
Well that's fantastic. Of course I just bought 5,000 credits from EmailListVerify, but that's fine. As long as you have a way of doing it!
Let me see if I can add that system as well :) The only reason I picked the list I picked is because those were all the providers I found during a surface-level search 😅

EDIT: Added :)
 
Last edited:
My experience with EmailListVerify is that it's not reliable unfortunately. It was marking a lot of valid addresses as invalid and some invalid addresses as valid.

I'm very interested to learn how reliable the 4 above services are.
Unfortunately I have no experience with either of those four systems, so I can't make any value or efficacy statements about either of them :(

I'll have to pick one for if/when I ever need to send out another mail blast, which I hopefully won't have to do since surely there won't be any more server issues now that I'm paying for cPanel again...
 
It would be be interesting to check the same list of at least thousands of emails against all APIs and compare the results. I'm pretty sure that the results will conflict.

I did some tests with Email List Verify some years ago and many valid addresses came out as invalid and many invalid addresses came out as valid.
Others had similar results in recent years. I would strongly advise against using them if there are better options.
 
Sadly there are limited options available short of actually sending email regularly so you can keep bounce rates low. I try to keep the amount of useless emails to a minimum (only recently found out I had the activity summary email still enabled, entirely useless for my site!) so these kind of validations are necessary.

I do know Amazon SES are not happy about their service being used as a "live verification" system, so I'll take false positives over having to go back and beg them to unblock me for a fifth time...
 
Well, Amazon blocked me already. Partly because xenforo standard email templates don't comply with their requirements and partly because bounce processing failed for some time. They will only unblock me if I proof that a number of requirements have been met. One is that I need to verify all 300k email addresses.

It's important that the verification is accurate and I don't lock out valuable members with valid addresses.
 
The standard XF template in 2.3 definitely meets all the requirements, as I've not had any issues. What I did was create a notice that only shows to users with the bounced user state, so if any recurring members get flagged as bounced, they'll know as soon as they visit any page on the site.
 

There are some other articles that describe it
 
It would be be interesting to check the same list of at least thousands of emails against all APIs and compare the results. I'm pretty sure that the results will conflict.

I did some tests with Email List Verify some years ago and many valid addresses came out as invalid and many invalid addresses came out as valid.
Others had similar results in recent years. I would strongly advise against using them if there are better options.
Guess different results from my tests at https://github.com/centminmod/validate-emails
When was last time you used them?
 
Very nice to see your benchmark. This is really useful. Thanks!!!
Bouncify and MillionVerifier are by far the cheapest option and from your benchmark seem to give reliable results.
Its a shame that Bouncify is so slow.

When was last time you used them?
I used them in 2019. I tested about 40k email addresses and compared the results with recently hard bounced, recently soft bounced and their return message in the bounce log. @DragonByte Tech created an advanced SES bounce processing script for XF1 for me. This fetches a vast number of bounce messages (text) depending on the email server and processes these to accurate xenforo account status. I also compared the results with recently registered users, which should be valid.

EmailListVerify marked some hard bounced addresses as valid, marked quite a few soft bounced addresses invalid. It also marked some addresses from recently registered users as invalid. Upon inspection the main issue was with very soft bounces or vague status being misintepreted and marked as invalid. Another major issue I encountered was that EmailListVerify their 'unknown' status which was the result for many valid addresses.

More info here:

It seems to me that the example email addresses you have used are convenient because these can be published without privacy /GDPR considerations. But these do not provide real world examples and I think real world examples are likely to give different results and expose weaknesses of the validation providers.

I think the best way to do a benchmark or to check the results for email validation services is to compare the email addresses of an active board and compare:
  • 50 or 100 recently hard bounced email addresses from a wide variation of email providers. i.e. no more than 5 addresses per provider. These are highly likely to be invalid.
  • 100 recently soft bounced email addresses from a wide variation of email providers. i.e. no more than 5 addresses per provider. These are highly likely to be valid depending upon the definition of soft bounced.
  • 50 or 100 recently registered email addresses from a wide variation of email providers. These are highly likely to be valid.
Then score the status results as correct or incorrect.
Compare the bounce status message from the bounce log and see in which scenario the validation service gets it wrong.
 
Last edited:
Something that Amazon SES support frequently alludes to is to implement this practice:
We recommend that you send at least 20 messages to “good addresses” for every one you send to a questionable address. This way, you’re makings sure that the bulk of your sending is to known good addresses that have not bounced, and to recipients you have recently engaged with. Meanwhile you dribble out a small flow of emails to the questionable addresses.

Basically what they are saying is: monitor your sending reputation and spend some of it by sending to questionable addresses, so that slowly you process all emails. I think this is quite interesting advice that can be implemented in xenforo in different ways.
 
Back
Top Bottom