I'm currently trying to get my head around an issue with our Shop's email setup. So far we were using G Suite for all our emails related to our domain abc.com
.
# The History: #
Our WooCommerce Shop was utilising the wp_mail()
PHP-Mail functionality to send transactional emails (e.g. Order received, Account created, ..) by our Webhoster. As we were facing more and more emails being send to our customers SPAM folders, we decided to move to a SMTP provider.
# The new Setup: #
We installed the WP SMTP Mail Plugin for Wordpress and chose Sendgrid as SMTP provider. We followed the instructions and were able to connect all three: Our WooCommerce Shop, WP Mail SMTP and Sendgrid.
# The problem: #
Now that we have the new setup running, things seem to be somehow messed up. I read that it is not allowed / not good practice to mix the MX-record setting for abc.com
. But this is exactly what I did - what I had to do - to make both, Sendgrid and G Suite function.
Despite the fact that Sendgrid lists outbound emails from [email protected] in its activity dashboard, the actual email is signed by Gmail's default DKIM domain key: d=*.gappssmtp.com
, which shouldn't be the case, right?
# The objective: #
# Open Questions: #
# Additional information: #
DNS/MX-records required by G Suite:
Even though transactional emails are not required to have unsubscribe links, we think it's always useful to enable recipients to manage their notification preferences, including unsubscribing from some (or all) of them.
Transactional email generally uses an API or SMTP integration to send emails. This usually requires a developer to set up a system that will send coded templates to specific recipients based on a specific action. In Mailchimp, however, you can quickly create transactional emails like you would any email campaign.
Simple Mail Transfer Protocol (SMTP) is a quick and easy way to send email from one server to another. SendGrid provides an SMTP service that allows you to deliver your email via our servers instead of your own client or server. This means you can count on SendGrid's delivery at scale for your SMTP needs.
Which DNS-record shall I set for my top-level domain "abc.com" to make the setup work?
I assume you are talking about MX records here. MX records tell the outside world which server incoming email should be delivered to, so you probably want the G-Suite settings here. Note that if you have more than one server listed (in the screenshot you have 5) delivery will be attempted first to the server with the lowest priority value and will stop whenever a delivery is successful. If 2 records have the same priority, which one gets tried first is up to the sender.
How should the SPF/DKIM/DMARC setup look like for this use case?
v=spf1
from the beginning of both records-all
or ~all
from both recordsa
and mx
)
+foo
and foo
to be duplicatesv=spf1
on the beginning of your new combined record (there should be a space between it and the rest of the record)~all
on the end of your new combined record (there should be a space between it and the rest of the record) (you can use -all
if you want to be more aggressive in not allowing emails through from servers impersonating your domain rather than just sending them to spam)_domainkey.example.com
. In your case I would just use the one from Sendgrid, since both the one from Sendgrid and the one from G-Suite probably specify that all emails should be signed, and Sendgrid is the only one that really needs to get notifications for failures.google
. If your domain is example.com this key should be at google._domainkey.example.com
. Sendgrid's key will be named something else. Include both keys as separate records.Should [email protected] still be an active G Suite group / Mailing list or must this be removed?
I would keep it. You will still be able to send mail from it if you want, but more importantly it will catch any replies customers send to your automated emails.
Is it possible to send outbound emails from "[email protected]" from both Sendgrid and G Suite?
Yes
Is it correct to perform a Single Sender Verification with Sendgrid for [email protected]?
Sorry, I can't help you there. Everything up to this point has been generic advice about using 2 email providers, but that seems to be a Sendgrid specific thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With