Asks the name server for the domain’s mail route — MX records and addresses — and prints it. With –connect it also connects to the first available mail host, showing the SMTP conversation.
The manual makes it the first step of analysis when a domain’s queue grows: either half can break — name resolution or connecting to the host.
Options for different questions: –tcp and –edns — query transport, –server — another name server, –source — your own address for connecting, –use-dane and –use-mta-sts — checking by DANE and MTA-STS, –interactive — manual SMTP commands.
When to call it:
| Question | This command or not |
|---|---|
| does the domain’s mail route resolve | yes |
| does the mail host answer our address | yes — –connect –source=address |
| what the receiver replies to a specific message | no — trace |
# route and connection — from the default address and from a sending address pmta resolve --connect outlook.compmta resolve --connect --source=203.0.113.10 outlook.com
3 relations
The node needs a resolver that does all the work itselfThe mechanism the command works with. § 6.3.8The name lookup did not complete — and no conclusion is drawnA neighboring catalog entry. inference
edns-udp-lengthGlobalThe name resolution command does not use this line: it has its own size option. § 3.3.1.46Check whether a message will pass the SPF checkThe SPF check relies on DNS queries; that command shows what the node’s resolver returns. inferenceRun a command over the networkThe same output from the command line. § 8.4
dig +short MX outlook.com dig +short MX outlook.com @1.1.1.1
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇The watchdog that restarts the engineKeeps an eye on the engine and brings it back up after a crash by itself, sending a crash report to the postmaster address.◇What makes a virtual machine riskyRunning on a virtual machine is possible, but the manual does not recommend it without sufficient hardware and properly tuned hypervisor settings: under load the node may stop responding.