Digital Ocean SMTP Blocked
A guide to know and resolve digital ocean SMTP or Port 25 block.
Friday, Aug 12, 2022
SMTP port 25 which helps you to send emails, is blocked on all Digital Ocean Droplets for new accounts to prevent spam and other abuses of Digital Ocean’s platform.
Dedicated cloud email deliverability platforms are better at handling deliverability factors like IP reputation and sender reputation.
Mailazy is a cloud email delivery platform that helps you send your transactional emails without worrying about the technical challenges associated with SMTP.
Getting started with Mailazy
Account Creation:
-
Navigate to the Sender Authentication of your Mailazy dashboard.
-
Add the sender domain that you wish to send emails from, for example, if you would like to send emails from example.com then enter example.com and proceed with the verification. You may skip this step if you already have a sender domain configured and authenticated.
-
Navigate to the Access Keys, Click on Create Access Key to create an API Key and secret so you can authenticate your send email requests.
-
Start integration with the application, Navigate to Integration Guide https://app.mailazy.com/guide/integrate and select your preferred way to integrate either via email API or SMTP.
You can also check out client libraries and detailed instructions on integration on our docs https://mailazy.com/docs.
- Check the status and other details of your email message in the Logs tab of your Mailazy dashboard.
Send Test Email:
SMTP:
Set the following SMTP configuration in your application.
Server/Host: smtp.mailazy.com Port: 587 Username: Access Key generated from the dashboard. Password: Access Secret generated from the dashboard.
Email API:
Send an email by making an HTTP POST request to the Mailazy Email API at https://api.mailazy.com/v1/mail/send
curl --location --request POST 'https://api.mailazy.com/v1/mail/send' \
--header 'x-api-key: {your API Key without bracket}' \
--header 'x-api-secret: {your API Secret without bracket}' \
--header 'Content-Type: application/json' \
--data-raw '{
"To": [
"jon@example.com"
],
"From": "any_alias@{your sender domain without bracket}",
"Subject": "Hello World!",
"Content": [
{
"Type": "text/plain",
"Value": "hello world"
},
{
"Type": "text/html",
"Value": "<b>hello world<b/>"
}
]
}'
Please make sure that you insert your API Key and Secret and to value with your own. The from address should be the same verified domain that you have verified on your Mailazy dashboard.