This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Heshan

  • *
  • 1 posts
SMTP using AWS SES doesn't work
« on: December 19, 2023, 01:05:52 PM »
I tried configuring the SMTP settings to use AWS SES SMTP. But it doesn't work.
I have production AWS SES credentials.

When I remove the AWS SES, mails do work but always end up in Junk and delayed.

Any idea how to get SES to work? The only plugin for SES also doesn't seem to work. It crashes. :(




Any tips would be much appreciated!

*

MB Themes

Re: SMTP using AWS SES doesn't work
« Reply #1 on: December 19, 2023, 02:25:57 PM »
Looks like that plugin use some PHPMailer function that does not exists (isAmazonSes())
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

johnh

  • **
  • 5 posts
Re: SMTP using AWS SES doesn't work
« Reply #2 on: January 02, 2024, 08:44:06 PM »
Hi,

I have the exact same problem.

When I try to use custom SMTP server to send mail, the test email works fine but when a user signs up on the website then the registration email is sent using the PHP mail() function instead.

Can someone please tell me how do I fix this so if custom SMTP server is configured then everything email related from the website is sent using those SMTP settings?

Thanks in advance

*

MB Themes

Re: SMTP using AWS SES doesn't work
« Reply #3 on: January 03, 2024, 08:06:19 PM »
Enable mail server debug log and check output from your mail server.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

johnh

  • **
  • 5 posts
Re: SMTP using AWS SES doesn't work
« Reply #4 on: January 08, 2024, 07:37:31 PM »
Enable mail server debug log and check output from your mail server.

I am not sure you understand what I am trying to say.

When I click the "test send" button on the SMTP auth configuration page, it works fine. When I sign up on the main page and watch the mail logs then I can see that the sign up confirmation email is not sent via SMTP authentication that is configured from the admin panel but instead it is sent using the php mail() function.

Can you please look into this? It looks like a bug in your software. It is preventing me from launching the site.

*

MB Themes

Re: SMTP using AWS SES doesn't work
« Reply #5 on: January 10, 2024, 02:56:41 PM »
Enable mail server debug log and check output from your mail server.

Once you have logs, you can see what is response from your server.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

johnh

  • **
  • 5 posts
Re: SMTP using AWS SES doesn't work
« Reply #6 on: January 10, 2024, 06:10:03 PM »
Hi,

I will try to explain this again.

The logs show that during "test email" IT WORKS. So yes, it works on the SMTP auth setup page.

BUT

When I sign up on the main page and a confirmation email is supposed to be sent I watch the mail logs on the server in /var/log/exim_mainlog and I can see that the email is sent using the user account PHP-FPM is running as and using the PHP mail() function.

Please re-test and re-view this again because it seems to me that you do not really understand what I keep trying to say.

*

MB Themes

Re: SMTP using AWS SES doesn't work
« Reply #7 on: January 10, 2024, 07:14:54 PM »
So how those logs looks like for successful and failed email if you reviewed them already?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

johnh

  • **
  • 5 posts
Re: SMTP using AWS SES doesn't work
« Reply #8 on: January 11, 2024, 05:14:33 PM »
Ok, I finally got this to work. Apparently this was a misconfiguration issue on my end. I am sorry for blaming this on you.

Thanks for your support.

*

MB Themes

Re: SMTP using AWS SES doesn't work
« Reply #9 on: January 11, 2024, 07:57:21 PM »
Would be good if you can share details  ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on January 12, 2024, 01:38:16 PM
*

johnh

  • **
  • 5 posts
Re: SMTP using AWS SES doesn't work
« Reply #10 on: January 11, 2024, 08:20:39 PM »
SMTP server was on port 587 and I was using SSL encryption instead of TLS which was the correct one to use.

*

MB Themes

Re: SMTP using AWS SES doesn't work
« Reply #11 on: January 12, 2024, 01:38:22 PM »
Thanks!
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots