What Are TXT Records and How Do SPF and DKIM Use Them?
TXT records carry the data behind SPF, DKIM and DMARC. See what each record looks like, how to add it to your DNS zone and how to test that it works.
45 posts about Email: questions with answers, tutorials and articles, newest first.
TXT records carry the data behind SPF, DKIM and DMARC. See what each record looks like, how to add it to your DNS zone and how to test that it works.
What counts toward the SPF 10 DNS lookup limit, why exceeding it breaks authentication, and the practical fixes: pruning, flattening and subdomains.
MX records tell senders which mail servers accept email for your domain. Learn how priority and failover work and how to set up and test MX records.
Understand the four SPF qualifiers, the difference between softfail and fail, and how to move from ~all to -all without losing legitimate mail.
A practical walkthrough for creating an SPF record: inventory your senders, write the record, publish it in DNS and verify it with real test mail.
Use dig and nslookup to inspect MX, SPF, DKIM, DMARC and reverse DNS records, compare resolvers and read the results when something looks wrong.
Learn what reverse DNS and PTR records are, why receiving mail servers check them, how to set one up for a mail server IP and how to verify it.
Learn what an MX record is, how priority and backup servers work, how to add one at your DNS provider and how to verify it with dig and nslookup.
An email domain needs MX, A, SPF, DKIM, DMARC and reverse DNS records. See what each does, with example values and dig commands to verify them.
SMTP AUTH proves who may send through a mail server. See how the exchange works, which mechanisms exist, which ports to use and how to fix 535 errors.
Learn to test an SMTP server by hand with telnet, nc and openssl s_client, including STARTTLS, TLS checks, AUTH and how to read reply codes.
STARTTLS upgrades a plain SMTP connection to TLS. See how it works, why it can be stripped, and how MTA-STS and DANE enforce encryption.
The envelope sender decides where bounces go, while the From header is what readers see. Learn why they differ and how DMARC alignment works.
Port 25 relays mail between servers, 587 submits it with STARTTLS and 465 uses implicit TLS. Learn which one your app or client should use.
Decode SMTP reply codes from 250 to 554, learn the 4xx versus 5xx rule, and see what enhanced status codes like 5.1.1 add.
A plain-language guide to the SMTP commands in every mail log, from EHLO and MAIL FROM to RCPT TO, DATA, STARTTLS and AUTH.
Follow a complete SMTP conversation from MX lookup to QUIT, with a real transcript and an explanation of every command and reply.
Open the raw message, read the Received lines from the bottom up and check SPF, DKIM and DMARC results to see the route and trust of an email.
A mail server sends, receives, stores and serves email for a domain. See its parts, required DNS records and the choice between hosted and self hosted.
The MUA is your mail app, the MTA moves mail between servers and the MDA stores it in the mailbox. See how the roles fit with real software.