Getting Error using default email services of strapi

Hi
I am trying to use default email services in strapi for development but i am facing error

error: Couldn’t send test email: can not connect to any SMTP server.
Error: Couldn’t send test email: can not connect to any SMTP server.
at Object.test (D:\FinalCMJL\backend\node_modules@strapi\plugin-email\server\controllers\email.js:50:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I am just testing my email from Strapi dashboard
my plugin.js look like

module.exports = ({ env }) => ({
// …
email: {
config: {
provider: ‘sendmail’,
settings: {
defaultFrom: ‘p6092@gmail.com’,
defaultReplyTo: ‘s738842163@gmail.com’,
},
},
},
// …
})

When i use different network i got this error
The IP address sending this message does not have a
550-5.7.25 PTR record setup, or the corresponding forward DNS entry does not
550-5.7.25 point to the sending IP. As a policy, Gmail does not accept messages
550-5.7.25 from IPs with missing PTR records.

Please help me to solve it

2 Likes

We have that same issue! Weirdly, never had this issue before, but we had no updates.
Never needed the sendmail provider package, added it anyways, didn’t help unfortunately.

We’re using strapi v4.15.0 with sendmail 4.15.4.

When using Strapi no-reply@strapi.io as default sender and test-sending to our own company email, the email is successfully sent according to the success notification, but never delivered. When using gmail as recipient of test email we receive the can not connect to any SMTP server error.
Any help with this? Our goal is merely to send an email for inviting users and sending forgot-password-emails.

2 Likes