Email sender checks and attacks: refuse fake senders, see who attacks your mail server
The Email security add-in stands in front of your mail server and checks every message before it is passed on. Two tabs on Security › Email & reputation › Email security show who is sending and who is attacking.
- Sender checks look up the sending server and the sender's domain in DNS: is there a reverse DNS name (PTR), does it point back, does the domain exist, can it receive mail, does it publish SPF, is the HELO a real name. Each check has its own action.
- Attacks counts every refused session and blocked message by reason, shows where they come from and whom they targeted, alerts on bursts, and lets you block a source for a time or report it to its network's abuse desk.
At a glance:
| Step | Where | What |
|---|---|---|
| 1 | Sender checks tab | Every check logs only at first: look at Failed (24 h) and What the checks found for a few days |
| 2 | Sender checks tab | Set the checks you trust to Tag or Reject; add partners that must skip a check with the pencil |
| 3 | Test a sender | Try an address, HELO and sender before you save: nothing is sent |
| 4 | Save to pending changes, then Review and commit | The new actions apply to the next mail |
| 5 | Attacks tab | Watch the live graph, the timeline and the top sources; Block or Report a source |
The sender checks
| Check | Fails when | Refused with |
|---|---|---|
| No PTR record | the sending address (IPv4 or IPv6) has no reverse DNS name | 550 5.7.25 |
| PTR name does not resolve back | the reverse DNS name exists, but looking it up does not give the sending address back | 550 5.7.25 |
| No SPF record | the sender's domain publishes no SPF record | 550 5.7.23 |
| Domain does not exist | the sender's domain is not in DNS (NXDOMAIN) | 550 5.1.8 |
| No MX and no address | the sender's domain has neither an MX record nor an address record, so no reply could reach it | 550 5.1.8 |
| Null MX (takes no mail) | the sender's domain says it sends and takes no mail (RFC 7505) | 550 5.7.27 |
| Newly registered domain | the domain was registered fewer days ago than you choose (30 by default), by the registry's RDAP answer | 550 5.7.1 |
| HELO is not a host name | the server introduced itself with a single word or a bare address (an address in brackets is fine) | 550 5.7.1 |
| HELO name does not resolve | the name it introduced itself with has no address | 550 5.7.1 |
Every refusal names the check and the reason, for example 550 5.7.25 Sender check ptr-none: the client address 203.0.113.25 has no PTR record (no reverse DNS name), so a genuine sender's administrator knows what to fix.
Each check's action:
- Off: not checked.
- Log only (the default for every check except the new-domain check): the result is written to the message's record and to What the checks found; the mail goes on as before. Updating Korthveil therefore changes no mail flow.
- Tag (header): the mail is delivered with a header your mail server can file on, for example
X-Korthveil-Sender-Check: domain-null-mx; reason=…. A sender cannot fake it: Korthveil removes such headers from arriving mail. - Reject: the sender is refused at
MAIL FROMwith the reply in the table.
DNS trouble never counts. When a DNS server answers with a failure (SERVFAIL, REFUSED) or does not answer, the check's result is DNS trouble and the mail goes on as if the check had passed. Such answers are asked again after a minute.
Bounces (mail with an empty sender, <>) skip the sender-domain checks: there is no sender domain to check.
Allow lists. The pencil on a check opens its allow list: one entry per line, a sender address (alerts@vendor.example), a domain and its subdomains (partner.example), or an IPv4 or IPv6 address or network (203.0.113.0/24, 2001:db8:25::/48). Skip every sender check for under the table skips all checks for its entries.
Newly registered domain asks an RDAP service on the internet (by default https://rdap.org/domain/, which forwards the question to the domain's registry). It is off by default. When the service does not answer, or gives no registration date, the check counts as DNS trouble, never as a failure.
Answers are cached per address, domain and HELO name for 60 minutes by default (Keep DNS answers for, 5 to 1,440 minutes), at most 10,000 answers.
Also checked shows the parts other settings on the page decide: SPF fail and softfail are the SPF policy's (refuse, quarantine or tag, with its own allow list), and a HELO that claims to be this server is the receive rule loopback-helo.
Choosing what to refuse
- Leave everything on Log only for a few days. Failed (24 h) counts each check's failures; What the checks found lists them with the server and the sender.
- Domain does not exist, No MX and no address and Null MX are safe to refuse: no genuine sender uses a domain nobody can reply to.
- No PTR record catches most botnet machines on home connections. A few small genuine mail servers lack reverse DNS: add them to its allow list.
- PTR name does not resolve back, No SPF record and the HELO checks catch more, with more genuine senders among them: Tag them first and let your mail server file the tagged mail into Junk.
Test a sender runs the checks, with the choices you have not saved yet, on any address, HELO and sender, and shows what would happen. Nothing is sent and nothing is counted.
The Attacks tab
Every attempt that the gateway refuses or blocks is one line, with its kind:
| Kind | What it is |
|---|---|
| Sign-in guessing | SMTP AUTH tried on the public mail gateway, which offers no sign-in |
| Open-relay probes | mail for a domain the gateway does not serve: a test whether it relays for anyone |
| Spoofing your domains | mail claiming to come from one of your own domains from a server that may not send for it |
| Sender checks | refused by a sender check |
| SPF | refused by the SPF policy |
| Block lists | the address is on a DNS block list you chose |
| Floods | too many connections at once from one address |
| Malware | malware or a blocked attachment type |
| Phishing | phishing, crypto lures and blocked senders |
| Other refusals | DMARC, spam score and other refusals |
A refusal by your own mail server (an unknown mailbox, for example) is not an attack and is not counted.
- Mail attacks per minute is the live graph of the last hour (the shared Korthveil graph: pause, speed and glow are in its settings).
- The timeline shows each hour of the window you choose (last hour, 24 hours, 7 days, 30 days), stacked by kind. Choose a kind to see only that kind.
- Top sources lists the addresses with the most attempts, with their country, network owner (ASN) and HELO. Press an address to see only its attempts. Top networks groups them by /24 (IPv4) and /48 (IPv6); Top countries and Top networks by owner add up the top 20 sources.
- Targeted recipients are the mailboxes the attempts were aimed at. They are shown here only, never written to the system log.
- CSV and JSON export the newest attempts as recorded.
The counts and the timeline are kept for 30 days. The top lists come from the newest 5,000 attempts; when those do not reach back over the whole window, the tab says so.
Block a source
Press Block on a top source. The review shows what will happen before anything does:
- Block: the address only, or its whole network (/24 or /48).
- For: 1 hour, 1 day, 7 days, 30 days, or until you lift it.
- Reason: written to the audit log and the block list.
Block puts it on the firewall's block list: every connection from it is dropped, not only mail. Addresses on the never-block list (your own, for example) are refused with the reason. The block ends by itself at its end time; lift it earlier under Security › Live attacks.
Report a source
Press Report on a top source: the attempts Korthveil recorded from it go to Security › Email & reputation › Abuse reporting, which finds the network's abuse desk, drafts the report and sends it under that add-in's own rules. Local and special-use addresses are never reported. Refused spam bots are also handed to Abuse reporting automatically, as before.
Burst alerts
Alert on bursts of attacks (on by default) raises an alert in the bell and through your notifications when, within the Window (10 minutes by default), the gateway refuses 100 attempts in all or 30 from one address. The alert names the kinds and stays 15 minutes after the burst ends. Attacks are never held back by a planned update's quiet window. The settings are saved with the page's Save to pending changes, then Review and commit.
Might be AI-written (Preview, off by default)
Security › Email & reputation › Email security › Settings › Might be AI-written can put a note on incoming mail whose writing looks AI-written. It is a Preview and off by default.
Please read this before you turn it on:
- It is an estimate from the writing itself. AI-written mail carries no label, so Korthveil can only guess from how the text is written. It can be wrong both ways.
- It never blocks. It never refuses, holds or quarantines a message, never raises an alert or a notification, and never changes what the other checks decided. It only adds a note.
- AI text that a person went over is often missed. In our own tests, drafts sent as the chatbot wrote them were marked; most drafts that a person had lightly edited were not.
- Mail that real people wrote can be marked. For example, a form letter with a placeholder such as
[Your Name]left in is marked even when a person wrote it. - Mail under 80 words, mail not in English, quoted replies and forwarded text are not estimated. Spelling, grammar and how formal the mail is never count.
Turn it on:
- Tick Note email that might be AI-written (Preview).
- Choose How a message is marked:
- A header and "[Might be AI]" before the subject (the default): the subject becomes, for example,
[Might be AI] Follow-up on our meeting. - A header only: nothing the reader sees changes; your mail server or mail app can file on the header. Choose this if your mail server checks DKIM signatures again, because changing the subject breaks the sender's signature.
- A header and "[Might be AI]" before the subject (the default): the subject becomes, for example,
- Optionally list senders (addresses, domains, IPv4 or IPv6 networks) and recipients (addresses or domains) that are never estimated. A message to several recipients is not estimated when any of them is on the list.
- Press Save to pending changes, then Review and commit.
What a marked message carries. The header names the reasons, for example:
X-Korthveil-AI-Estimate: likely; score=7.0; reasons=placeholder left in ([Your Name]), stock AI phrases (hope this email finds you well), a "Subject:" line inside the text
A sender cannot fake this header: Korthveil removes such headers from arriving mail.
What it looks at. Some signs are definite enough to mark a message on their own: a placeholder left in ([Your Name], [Company Name], [Recipient's Name]), a sentence like "As an AI language model", a chatbot's own words left in ("Certainly! Here's a draft", "Feel free to adjust the tone"), or markdown such as **bold** and ### headings in a plain-text message. Other signs only count when at least three of them agree: phrases that chatbots use far more than people do, a "Subject:" line inside the text, sentences or paragraphs of unusually even length, lists of "label: explanation" points, many em-dashes, and "not just … but" formulas. Newsletters, receipts and other automatic mail are judged by the definite signs only.
The Messages tab shows the estimate of every message under Might be AI-written (Preview): likely with the score and the reasons, unlikely with what was found, or skipped with why (too short, not English, an exempt sender or recipient).
IPv4 and IPv6
Every check and every count works the same for IPv4 and IPv6: PTR lookups use in-addr.arpa and ip6.arpa, networks are /24 and /48, and blocks take either.