devmehq / email-validator-js

Verify email address checking MX records, and SMTP connection, check for disposable email addresses and free email providers.
https://dev.me/products/email
MIT License
74 stars 21 forks source link

SMTP rejected because of ban by Spamhaus #100

Open tpimh opened 1 year ago

tpimh commented 1 year ago

I tried validating a number of email addresses using this library, and everything was fine at first, but after some time I started getting validSmtp: null and debug showed the following types of messages:

Mailbox: got data 550 5.7.1 Service unavailable, Client host [xx.xx.xx.xx] blocked using Spamhaus. To request removal from this list see ... (outlook)
Mailbox: got data 550 5.7.1 Mail from IP xx.xx.xx.xx was rejected due to listing in Spamhaus SBL. For details please see ... (icloud)

Is there a good way to prevent getting into Spamhaus blacklist while using this library?

angle319 commented 1 month ago

Actually, this action is like the package. There is no other way bypass spam block list unless you build your own mail server with it's own ip.

tpimh commented 1 month ago

Thanks for your reply. In fact I have built my own mail server with a dedicated IP, and the problem was that this IP was constantly added to the blacklist when using this library. I don't know if there's any good email validation method that doesn't make such request that are detected by Spamhaus as malicious.