Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
VGSources
Blog

How to Fix DKIM Problems in Webmin and Virtualmin DNS

Resolve Virtualmin DKIM errors by checking mail and DNS authority, repairing OpenDKIM, enabling signing, publishing the correct selector._domainkey TXT record, and validating it with dig, host, whois, and message headers.
WorldWebmin and Virtualmin DNS Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Most DKIM failures in Webmin or Virtualmin come from one of four mismatches: the server is not signing, the selector in the message does not match the DNS name you published, the public key is published at the wrong DNS authority, or the DNS key does not match the private key OpenDKIM is using. Fix the problem by identifying who hosts DNS and mail, repairing OpenDKIM if necessary, enabling signing for the virtual server, publishing the exact selector record, and checking the result from the public DNS path.

This guide gives a complete workflow for Virtualmin-managed mail, locally managed BIND zones, and domains whose DNS is hosted elsewhere.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What a DKIM failure actually means

DomainKeys Identified Mail (DKIM) adds a cryptographic signature to outgoing mail. OpenDKIM uses a private key held on the mail server to create that signature. A receiving server takes the selector and domain from the message’s DKIM-Signature header, looks up the matching public key in DNS, and verifies the signature.

The DNS name has this form:

selector._domainkey.example.com

The selector is the value after s= in the message header. The signing domain is the value after d=. Verification fails when the private key and DNS public key are different, the selector is wrong, the TXT record is missing, or the receiving server cannot reach the authoritative DNS server.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
  • No signature at all: signing may be disabled, OpenDKIM may be absent or unconfigured, or mail may be bypassing the Postfix path that Virtualmin configured.
  • Record not found: the selector is mistyped, the record is at the wrong provider, or nameserver delegation is incorrect.
  • Public key does not match: the DNS key is from an older selector or key rotation, or the TXT value was copied incorrectly.
  • Works on the server but not on the internet: the local BIND zone is not authoritative for the domain, or another DNS provider is serving the public zone.

Confirm which system controls mail and DNS

Before editing a record, map the domain’s architecture. Virtualmin can manage a virtual server’s mail, DNS, both, or neither. DKIM settings in Virtualmin are available only when that virtual server has both the DNS and email features enabled.

When Virtualmin hosts mail and authoritative DNS

Virtualmin can generate the key pair and show the TXT record to publish. If the domain’s delegated nameservers point to the same server or cluster running BIND, you can add the record through Webmin’s BIND DNS Server module or Virtualmin’s DNS tools.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When Virtualmin hosts mail but DNS is external

Enable signing in Virtualmin, but create the TXT record at the external DNS provider. Editing a local BIND zone does not change public answers when the registrar delegates the domain to another provider.

When DNS is local but mail is elsewhere

The server that actually sends the message must hold the private key and produce the signature. A DKIM record in your Webmin zone cannot make a different mail service sign messages. Obtain that service’s selector and public key, then publish the supplied record in the authoritative zone.

Use delegation checks when the answer is unclear

Public resolvers follow the domain’s delegated authoritative nameservers, not the server you happen to administer. A wrong NS delegation or missing glue record can make an otherwise correct BIND zone invisible. Check the registrar delegation with whois and compare it with the nameservers you believe are authoritative.

Choose the right DNS editing path

Situation Where to create the DKIM TXT record What to verify
Virtualmin and BIND are authoritative Webmin’s BIND DNS Server module or Virtualmin DNS tools The domain’s public NS records point to those BIND servers
Mail is on Virtualmin, DNS is hosted elsewhere The external DNS provider’s zone editor The provider is listed as authoritative by the domain delegation
Mail is hosted by another service The authoritative DNS provider, using the mail service’s supplied selector and key The outgoing message’s d= and s= values match the published record

Managed DNS can simplify nameserver, TTL, and propagation administration, but it does not remove the need to publish the exact selector and key generated for the active mail system.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Repair or install OpenDKIM

If Virtualmin reports that an OpenDKIM configuration file is missing, install the package before changing DNS. In the Virtualmin interface, open Email Messages → DomainKeys Identified Mail (the label may appear under the current interface’s Email Settings page). Use Install Now when it is offered.

The documented package commands are:

# Enterprise Linux systems
dnf install opendkim

# Debian-derived systems
apt-get install opendkim

After installation, return to the DKIM page and let Virtualmin detect the package and its configuration. Do not copy a key from another server unless you deliberately intend to keep the same key pair and selector; Virtualmin must be signing with the private key that corresponds to the public key in DNS.

If installation fails

Inspect /root/virtualmin-install.log for the package error. Check repository configuration, network access, package metadata, and any third-party repositories that may have replaced or conflicted with the operating system’s packages. Virtualmin notes that nonstandard packages can require the Webmin module to be told where configuration files are located. A package that installed successfully can still be unusable if the module is looking in a different path.

  • Resolve repository or dependency errors first; repeated attempts to create DNS records will not fix a missing signer.
  • Confirm that the Webmin module recognizes the installed OpenDKIM configuration rather than assuming the package name alone is sufficient.
  • After correcting paths or packages, reopen the DKIM settings page and regenerate or display the record for the active selector.

Enable DKIM signing in Virtualmin

For a virtual server with both email and DNS features active, use the domain’s DKIM settings page:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Email Settings → DomainKeys Identified Mail for the virtual server.
  2. Set Signing of outgoing mail enabled? to Yes.
  3. Enter a selector, such as 2026-10, or retain the selector already used by the domain.
  4. Save the settings.
  5. Copy the public-key publication instructions Virtualmin displays. Keep the selector and the entire TXT value together while you publish them.

Once enabled, mail relayed through Virtualmin for that domain is signed regardless of which mail client submitted it, provided it travels through the configured mail path.

Use the command line when you need repeatability

The equivalent Virtualmin command is:

virtualmin set-dkim --enable

The documented options let you set the selector, key size, and incoming verification behavior:

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
virtualmin set-dkim --enable --select 2026-10 --size 2048
virtualmin set-dkim --verify
virtualmin set-dkim --no-verify

Use the selector and size options on the command that enables or updates the domain according to your Virtualmin version’s accepted syntax. The key-size value is the number of bits. By default, incoming mail is not checked for a valid DKIM signature unless --verify is given.

Publish the exact public key in DNS

Create a TXT record at the selector that Virtualmin actually configured. For a selector named 2026-10 and domain example.com, the owner name is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
2026-10._domainkey.example.com

Paste the complete value supplied by Virtualmin, including the v=DKIM1 and p= fields. Do not replace punctuation, remove characters, insert quotation marks into the value unnecessarily, or use a key from a previous selector.

Adding the record in Webmin or Virtualmin BIND

  1. Open the domain’s zone in Webmin’s BIND DNS Server module or the Virtualmin DNS editor.
  2. Create a TXT record with the full selector owner name, the displayed value, and a suitable TTL.
  3. Save or apply the zone change.
  4. Verify the result with a public lookup rather than relying only on the local zone-file view.

Webmin’s BIND documentation describes a TXT record as associating an arbitrary text message with a name. The record still matters only if that BIND server is authoritative for the domain.

Adding the record at an external DNS provider

Open the provider’s DNS zone for the domain and add a TXT record. Some interfaces expect only the relative host name, such as 2026-10._domainkey; others accept the fully qualified name. Follow that interface’s convention, but ensure the resulting public name is exactly 2026-10._domainkey.example.com.

Virtualmin’s modify-dns API can represent the record with name, type, TTL, and value fields. This is useful for scripted changes, but the same authority rule applies: the API must modify the zone that public nameservers serve.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Handle long DKIM keys correctly

DNS providers may display a long public key as several quoted TXT strings. Preserve every segment and the provider’s required formatting. DNS resolvers concatenate the strings for the TXT response; omitting one segment produces a different key. Confirm the concatenated answer with dig after saving.

Verify the public DNS path

Run the lookup from a system that can query public DNS:

dig TXT 2026-10._domainkey.example.com
host -t TXT 2026-10._domainkey.example.com

The answer should contain the complete DKIM value, including v=DKIM1 and p=. An empty answer, an NXDOMAIN response, or a key belonging to another selector indicates a DNS publication problem, not an OpenDKIM signature calculation problem.

Query the authoritative servers directly

If ordinary resolver results are stale or inconsistent, identify the authoritative nameservers from the domain delegation and query each one directly with dig. Differences between authoritative answers point to an unsynchronized zone or a record added at the wrong provider. A recursive resolver may continue returning an older answer until the record’s TTL expires.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use whois for delegation and glue problems

whois example.com

Use the result to confirm which nameservers the registrar delegates to the domain and whether the host names require glue records. If those nameservers do not include the BIND server you edited, the local record cannot be retrieved publicly.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check the signature on a real message

Send a test message through the same account and submission path that is failing. Open the message’s full headers and locate DKIM-Signature. Record:

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
  • s=, the selector;
  • d=, the signing domain; and
  • the receiving system’s DKIM result.

Use those values to form the DNS query. If the header says s=oldkey while you published 2026-10._domainkey, the server is still using the old selector. If no DKIM-Signature header exists, revisit signing enablement, OpenDKIM installation, and the mail path rather than editing the TXT record.

A message can be signed correctly while DNS is still wrong, and DNS can be correct while the message uses a different selector. Both sides must agree.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Diagnose the common failure patterns

Symptom Likely cause Corrective action
No DKIM signature Signing disabled; OpenDKIM missing or not recognized; message bypasses the configured Postfix path Enable signing for the virtual server, repair the package/configuration, and test through the configured relay
DKIM record not found Selector typo, missing TXT record, wrong DNS provider, or broken NS/glue delegation Read s= from the message, query that exact name with dig and host, then check delegation with whois
Public key does not match Old key remains after rotation or TXT value was copied incompletely Publish the complete key generated for the active selector and retest
Record visible locally but not online Edited BIND is not authoritative, or an external provider serves the zone Follow the delegated nameservers and edit the authoritative zone
Virtualmin cannot create DKIM configuration Package/repository failure, missing configuration path, or unsupported nonstandard package Review /root/virtualmin-install.log, fix repositories or paths, and reopen the DKIM module
Long TXT value verifies incorrectly One quoted TXT segment was omitted or altered Restore every segment exactly and inspect the concatenated public response with dig

Rotate selectors and keys without breaking mail

A selector is a version label for a key pair. Rotating it is safer than overwriting a key that existing messages or senders still use.

  1. Choose a new selector, such as a new year-and-month value.
  2. Configure Virtualmin to sign with the new selector and let it generate or select the corresponding private key.
  3. Publish the new selector’s public TXT record in the authoritative DNS zone.
  4. Use dig to confirm that the new record is publicly visible.
  5. Send a test message and verify that its s= value is the new selector.
  6. Keep the old TXT record while any sender still uses the old selector. Remove it only after the old signing configuration is no longer active.

If Virtualmin continues signing with an old selector after a change, publish that old selector again or correct the active configuration before removing anything. Deleting a still-used key causes immediate verification failures.

Decide whether to verify incoming mail

Mode Effect When it fits
Signing only Outgoing mail receives DKIM signatures; incoming signatures are not checked by default You need outbound authentication without changing incoming-mail handling
Signing plus verification Outgoing mail is signed and incoming DKIM signatures are checked You have a policy and monitoring plan for handling verification results

Enable incoming verification with virtualmin set-dkim --verify or the corresponding interface setting. Disable it with virtualmin set-dkim --no-verify when verification is causing unwanted bounces, but understand that this changes how suspicious or malformed incoming mail is handled. Verification alone does not authorize rejection; your mail-filtering policy determines what happens to a failed check.

A repeatable recovery checklist

  • Confirm Virtualmin owns the mail path and that the virtual server has both email and DNS features enabled.
  • Determine the domain’s authoritative nameservers; do not assume the local BIND zone is public.
  • Install or repair OpenDKIM using Virtualmin’s Install Now, dnf install opendkim, or apt-get install opendkim.
  • Enable outgoing signing and write down the configured selector.
  • Publish the complete public key at selector._domainkey.example.com in the authoritative DNS zone.
  • Query that exact name with dig and host; query authoritative servers directly if necessary.
  • Use whois when nameserver delegation or glue records are suspect.
  • Inspect a test message’s s= and d= values and compare them with the DNS name you queried.
  • During rotation, retain old selector records until all signing traffic has moved to the new key.

Following the checklist isolates the failure domain: package and signing issues stay on the server, while selector, TXT, delegation, and authority issues stay in DNS. DKIM succeeds only when the private key used to sign, the selector in the header, and the public key served by authoritative DNS form one matching set.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.