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 18.104.22.168 (main server ip) mail IN A 22.214.171.124 (mail server ip) www IN A 126.96.36.199 @ IN MX 10 mail @ IN TXT "v=spf1 a mx ip4:188.8.131.52 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?