Since 1 month ago I am using Sendy.co to manage our subscribers lists, I like specially the autoresponders feature, since I am able to create autoresponders after a preiod of time they have subscribed. Its a nice piece of software, does the job good and it’s really cheap since uses Amazon SES to send the emails.
The Issue
I use Sendy.co to subscribe users to our newsletters, but many were using fake email addresses using disposable email services, like guerrillamail etc.. Also we had an issue with fake domain names, let’s say you input a non existing domain such as asdaslolololololo.com we should not even bother to send an email to that address. I was not the only one that asked for this feature 2 years ago, here and here.
The Solution
Found few lists of disposable emails
- http://www.bryansimonson.com/2010/12/01/detect-disposable-email-addresses-with-perl/
- https://gist.github.com/adamloving/4401361
- http://torvpn.com/temporaryemail.html
- https://github.com/ivolo/disposable-email-domains
Replace at your installation the file /sendy/includes/helpers/EmailAddressValidator.php With this one.
The modification checks if the domain has a valid DNS entry with an MX (checkdnsrr) and goes against the blacklist of banned domains. The code is not really beautiful, since they use a 3rd party library to validate an email when they could have used
filter_var('bob@example.com', FILTER_VALIDATE_EMAIL);
See more here. But works.
Tested it for few days works like charm 😉