Setting up WP Mail SMTP with AWS Workmail

0

Hey all,

I am currently working on setting up my WordPress email. I'm trying to set up my WP Mail SMTP with AWS Workmail, but I am receiving an error message when a Test Email is being sent.

What I have done :

  • I am not in SES Sandbox anymore
  • Added a policy to allow full Workmail access to my User
  • DNS records have been properly set up with respect to AWS SES and Workmail credentials
  • Tested Workmail email that is being used. The email address is able to send and receive emails.
  • I have created a new SMTP User to make sure it is not a problem with the SMTP credentials, but I am getting the same mistake.; Region used : US-East-1

The following is the error message I am getting once I am finalizing the SMTP setup on Wordpress :

SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server Additional SMTP info: php_network_getaddresses: getaddrinfo failed: Name or service not known

3 Recommended steps are suggested to me :

  1. Triple check the plugin settings, consider reconfiguring to make sure everything is correct (eg bad copy and paste). --** Plugin settings seems OK after checking again.**
  2. Contact your web hosting provider and ask them to verify your server can make outside connections. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports. Note: this is the most common cause of this issue. -- Trying this right now.
  3. Try using a different mailer. --** I tried and same error message pops up**

Has this happened to somebody in the past? and if yes could you link me to the resource or help me figure out the problem?

I have been breaking my head for a couple of days now and I think that there's just something on AWS preventing any email to be received from my WP site.

Thank you for your help!

3 Answers
0

Double check that you have the correct SMTP server address and configured in your application or email client. Ensure the server address is spelled correctly. The error message indicates also a problem with DNS. IP address of SMTP server could not be resolved, may be check DNS configuration issues on your network or temporary DNS problem. SMTP server might be temporarily down, you can check if there is any of that issue. Finally, ensure that the SMTP server is listening to the correct port and that port is not blocked by your network or firewall. Hope it helps.

profile picture
answered a year ago
0

How do I ensure that the SMTP server is listening to the correct port and that port is not blocked by your network or firewall?

I went on my AWS Lightsail and updated the ports allowed by the firewall.

Furthermore, I have changed the email client to Outlook 365 (not AWS Workmail anymore).

My Wordpress website is now able to send emails but the email itself is not being delivered.

Could you guide me with detailed steps if possible?

Thank you so much for your help!

answered a year ago
0

For your information, here are the following ports I have allowed for any IPv4 addresses : 22 25 80 110 143 443 587 993 995

Thanks!

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions