This is most likely not a MODX issue - however, I would really appreciate your thoughts.
Emails will only be sent from the website using the host’s own email addresses. When I use my actual domain email address, which uses Google Workspace, nothing is received.
Step to reproduce
Change the Formit recipient address or the QuickEmail (via System Settings emailsender setting) address to my website’s email eg myname@mydomain.co.uk and send an email. No errors are shown but nothing is received.
Change the Formit recipient address or the QuickEmail (via System Settings emailsender setting) address to another of my domains which is set up with the host (no Google etc) and the emails come through.
Expected behavior
I would expect the emails to be received by my domain’s email address on Google. All other (normal - not from the website) emails are received.
Environment
Latest MODX.
Google Workspace with SPF set up with my host’s IP included.
It may be worth nothing that, as of this year, most providers, including Google, require SPF, DKIM and DMARC to be set up before they will deliver any emails from a domain.
I don’t think Gmail allows using it effectively as an ESP any longer (and I think Microsoft has also followed that lead, too). They’re going down the path of requiring OAuth 2.0 authentication soon if not already.
Go grab a free account at smtp2go.com, or a paid account you can use for all your sites at postmarkapp.com, you’ll be so glad you did!
I have created an account on smtp2go and still get the error on my site - however, using an smtp test tool using the exact same details I get the email. Does this mean it is MODX or my host where the issue lies?
I spoke to the host who suggested using localhost as the SMTP server (I didn’t know that was an option/enabled) which connected and worked. Then I assume because I had entered the server IP into the SPF record it was delivered successfully.