
That will (should) print multiple lines, the one you're interested in: ANSWER SECTION: To make sure it's correct anyway, look it up manually: The error itself you are seeing is related to the PTR lookup of your public IP, but could also be caused by the extra include and be a false positive here. Otherwise, that would (but won't) build a loop. Your own domain is not needed, cause the SPF record is saved in it's DNS records. Your SPF record should look like the following. (quite frankly, this is not a programming question so superuser would have been the better choice there, but I like that you wanna host your own mail :) ) Are the arguments correct? And does the order matter? How can I use the Protonmail records for sending and receiving, but restrict my Postfix server to send-only? (does DNS even care about this directionality?) I'm quite sure there is something wrong in my spf record. However, when testing sending an email from my Postfix server, some client servers reject the email, with the following log in my Postfix server: E543D5E0003: host said: 450 4.7.1 Client host rejected: cannot find your reverse hostname, (in reply to RCPT TO command) How should it look? I thought it should be like so: v=spf1 include: include:_ mx ~all Where I think I'm struggling is with updating the spf record. Then I've added the contents from postfix.txt, concatenating the long p string, to my DNS provider with another TXT record: Host=._domainkey v=DKIM1 h=sha256 k=rsa s=email p=MEEij. Sudo sed -i 's/h=rsa-sha256/h=sha256/' postfix.txt I created a DKIM key using opendkim: sudo opendkim-genkey -b 8192 -h rsa-sha256 -r -v -subdomains -s postfix -d $(hostname -domain) & \ Now I'd like to implement objective 2 (above). Host=protonmail._domainkey v=DKIM1 k=rsa v=spf1 include:_ mx ~all In order to send/receive email using Protonmail through my domain name, I've set up the following TXT records: protonmail-verification=e954fa.

Send-only email from a Postfix server I'm running.Send and receive email using Protonmail from the custom domain.I've had this working for a while, but now I'm having trouble extending it for another DKIM record. I've bought a domain name, and Protonmail which allows using a custom domain. I know very little about mail server administration.
