On a new site development I need to establish email for a splash page. Currently I have a domain from one company (will call Company1), using Netlify or GitHub pages for hosting the site, and using an email server from another company (will call Company2).
I've pointed the nameservers from Company1 to Netlify but I'm unsure how to go about setting up mail and getting the SPF and TXT records.
Currently I have in Netlify:
Type | Name | value |
---|---|---|
A | mail.example.com |
IP xxx.xxx.xx.xxx from Company2 |
A | webmail.example.com |
IP xxx.xxx.xx.xxx from Company2 |
MX | example.com |
mail.example.com |
SPF | example.com |
?? |
TXT | example.com |
?? |
I've used MX Toolbox but I get:
Invalid Input. 'mx' requires a Fully Qualified Domain Name.
example.com/
is invalid.
In my research trying to learn what is the correct way to go about this I've read:
- SPF Record for Google Domains Email Forwarding
- DMARC report: systematic SPF failure for a domain
- How do I add an spf for a Postmark App sender signature when there's an existing spf record?
- SPF record when outgoing mail server is on the same IP as the web server
- TXT DNS record for static GitHub site
What is the correct way to get SPF and TXT for mail? Sorry if I'm going about this incorrectly I'm new at this.