The setup is one main server (domain.tld) with an online shop and exim4 to send mails and a second server (mail.domain.tld) dedicated to the company mails.
The DNS right now looks somewhat like this:
@ IN NS nameserver1
@ IN NS nameserver2
@ IN NS nameserver3
@ IN A 11.11.11.111 (main server ip)
mail IN A 22.22.22.222 (mail server ip)
www IN A 11.11.11.111
@ IN MX 10 mail
@ IN TXT "v=spf1 a mx ip4:11.11.11.111 ip6:abc:def:... mx:mail.domain.tld ~all" (main server)
default._domainkey 3600 IN TXT "v=DKIM1; p="...." (mail server)
My Problem: The SPF and DKIM records
The SPF is currently from the main server and the DKIM from the mail server. Is this the correct configuration, or is there a better way to handle two servers with one zone file?