- Newest
- Most votes
- Most comments
How did you get to your cost and where are you looking at running your script?
I understand you're looking for a more cost-effective and sustainable solution to verify email deliverability for a large database of email addresses without actually sending emails. While the Python script you've provided is a good start, there are a few considerations and potential improvements to make the process more efficient and less expensive:
-
Use Amazon SES (Simple Email Service): Instead of building your own email verification system, you can leverage Amazon SES, which provides email address verification capabilities. SES allows you to verify email addresses without sending actual emails, which can be more cost-effective and reliable.
-
Batch processing: Instead of verifying emails one by one, you can use batch processing to verify multiple email addresses at once, which can significantly reduce the time and resources required.
-
Implement caching: Store the results of your verifications in a database or cache. This way, you don't need to re-verify email addresses you've already checked, saving time and resources.
-
Use AWS Lambda: You can create a serverless function using AWS Lambda to run your email verification script. This can be more cost-effective than running a dedicated server, as you only pay for the compute time you use.
-
Implement rate limiting: To avoid being blocked by email servers, implement rate limiting in your script. This will help ensure your IP doesn't get blacklisted.
-
Use Amazon SES's bulk verification feature: If you're migrating from another email-sending solution, SES provides a way to verify multiple email addresses at once using a JSON-formatted input file.
-
Consider using the VerifyEmailIdentity API: This is the recommended method for verifying individual email addresses with Amazon SES.
Remember, while these methods can help reduce costs and improve efficiency, they still involve some level of expense and may not be 100% accurate. Email verification without sending actual emails always involves some level of uncertainty. It's important to balance the need for accuracy with the cost of verification.
Lastly, ensure you're complying with all relevant privacy laws and regulations when handling and verifying email addresses.
Sources
Verifying email addresses in Amazon SES - Amazon Simple Email Service
verify_email_address - Boto3 1.34.114 documentation
Verify multiple email addresses - Amazon Simple Email Service
Verifying an email address - Amazon Simple Email Service
answered 2 years ago
Relevant content
asked 8 months ago
asked 3 years ago
- AWS OFFICIALUpdated 16 days ago
- AWS OFFICIALUpdated 8 months ago

Well we have talked to a few companies and they gave a rough estimate of the amount I provided above. I am planning to run the script on AWS (for e.g. AWS Lambda) but not sure if it will work as there is a default timeout of 15 mins per lambda.