SMTP Email Contact Form no longer works with SendGrid / SES

LiteCart Fan
Şundan Australia
Ara 2018 tarihinden beri üye

In Settings > Email, we have "SMTP Enabled: True" as we had a problem with emails being sent from our server. This has worked for years.

I am not sure if it's related to our upgrade to 2.4.3 or if SendGrid & SES have changed their rules at the same time.

We have been using Amazon SES, and the contact form stopped working. Upon testing it, it would only work if we entered the customers email address as our email address (which is an address we approved in Amazon SES).  Obviously the customer isn't going to put our email address as their email address when they fill in the contact form.

So I tried changing the SMTP settings to SendGrid (who we used to use successfully on Litecart before we changed to Amazon SES becuase it was cheaper).  The same thing happened.  

Note that order confirmation emails etc. are all sent successfully because they are sent from our approved email address.

Also note that the Amazon SES help page (https://aws.amazon.com/premiumsupport/knowledge-center/ses-554-400-message-rejected-error/) mentions that it applies to all of these addresses: "From", "Source", "Sender", or "Return-Path" addresses.

SendGrid Error:

[quote]Warning: Failed sending email "Test 800": Unexpected socket response; 550 The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements in ~/includes/entities/ent_email.inc.php (Line 369)[/quote]

Amazon SES Error:

[quote]Warning: Failed sending email "Test 800": Unexpected socket response; 554 Message rejected: Email address is not verified. The following identities failed the check in region AP-SOUTHEAST-2: sdf sdfs in ~/includes/entities/ent_email.inc.php (Line 369)[/quote]

tim
Founder
Şundan Sweden
May 2013 tarihinden beri üye
tim

So I understand from your error message that the SMTP provider does not like the sender email. That you need to register the store email as a verified sender address with the SMTP service provider. Whether it's SendGrid or Amazon they should provide instructions.

Edit: Here is one guide https://docs.sendgrid.com/ui/sending-email/sender-verification

LiteCart Fan
Şundan Australia
Ara 2018 tarihinden beri üye

Hi Tim,

Thanks for the reply. 

Originally we were using Amazon SES for more than a year. Our store email address has always been verified in Amazon SES. And order confirmations emails have always gone through without issue. But the contact form stopped working with that error. It wouldn't accept customer email addresses'. I am guessing it is due to Amazon now also needing verification for the "Return-Path" addresses - which is impossible as it's the customers email address.  That is why with the contact form, if I put our verified store email address as the customers email address, then the form submission would be a success.

However with my rushed attempt at signing up for a new Sendgrid account to test out if it had the same problem, I failed to verify our email address. So this was the issue with Sendgrid.  Sendgrid is OK for the contact form, but Amazon SES now appears not to be.

Thanks

tim
Founder
Şundan Sweden
May 2013 tarihinden beri üye
tim

Right, so this Return-Path policy is getting more common every day. I see more and more servers denying a different Return-Path.
I dunno where we go next. Ticket systems?

LiteCart Fan
Şundan Australia
Ara 2018 tarihinden beri üye

Yes I see the challenge. For anyone else's info:

  • Sendgrid works really well, but their IP addresses are often on spam blacklists (with the cheapest paid plan anyway).  Due to SPF/DKIM, this doesn't affect most mail delivery anymore, but it does affect delivery to Hotmail.
Bu konu uzun süredir aktif olmadığı için kapatıldı. Konuya mesaj göndermek mümkün değil.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.