Urgent.News

What's breaking now, across thousands of outlets.

Tech

How We Built a Receive-Only Email Honeypot with Postfix

We set up a small lab to collect fresh samples of unsolicited email for security research. An Ubuntu 24.04 LTS cloud server runs Postfix and saves incoming messages to Maildir. The project notes are hosted separately on GitHub Pages. This English version was translated and edited with AI assistance from our original deployment notes. Connect the DNS records to the SMTP listener We set the MX…

This article details the process of creating a receive-only email honeypot using Postfix. A small lab environment was established on an Ubuntu 24.04 LTS cloud server to gather fresh examples of unsolicited emails for security research purposes. The server runs Postfix and saves incoming messages in a Maildir directory. The project notes are hosted on GitHub Pages to ensure accessibility.

The DNS records were connected to the SMTP listener by setting an MX record for the recipient domain, "trap.quietpostlab.me", to point to the server's public IPv4 address with a priority of 10. An A record was also configured for that host to point to the server's public IPv4 address. When a sending mail server resolves the MX host, it connects over TCP port 25.

Postfix treats the recipient subdomain as a virtual mailbox domain, with configured addresses mapping to a Maildir owned by a dedicated system account. Each delivery creates a file preserving the message headers, body, and MIME attachments. The system was restricted to only accept messages from the lab domain, rejected third-party relay requests, and disabled SMTP authentication and outbound delivery.

A message limit of 20 MiB, bounded connection counts, timeouts, and log rotation were set to enhance security and manage resources effectively.

Postfix was configured to defer incoming mail if the queue filesystem ran below its free-space threshold. Three checks were performed on the server to verify delivery and persistence. The first was running "sudo postfix check" to ensure Postfix was operating correctly. The second was using "sudo ss -lnt" to check that the SMTP listener was active on port 25. The third was running "sudo postqueue -p" to verify that messages were being queued successfully.

Two marked test messages were sent from outside the server, one using the public IP and the other using the MX hostname. Both messages arrived in the Maildir directory. The content of these messages was checked, including the Chinese subject line, plain text, HTML, and attachments. An archived message was still readable after restarting Postfix, confirming the persistence of the stored messages.

The server also rejected test relay requests for recipients outside the lab domain, ensuring the honeypot's effectiveness in filtering out unwanted email traffic.

The project notes were moved from the original web host to GitHub Pages due to anonymous requests being returned with HTTP 403 errors. The web pages and the SMTP service use separate DNS names, allowing distinct addresses to be assigned to each publication. Each publication uses its own SMTP address, and the actual delivery recipient is used to measure the time to the first confirmed spam and count new message patterns after deduplication.

Researchers are invited to send messages to a specific experimental address, devto-r7m2@trap.quietpostlab.me, for email security research purposes. Personal and confidential information should not be included in these messages.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

ElevenLabs re-voiced 108 tutorial clips and we added 39 for French

On 2026-11-07 we shipped a change to the Skat game that moves its tutorial narration to ElevenLabs. The 108 ordinary lesson clips, in Polish, German and English, were recorded again with the same…

  • ElevenLabs re-voiced 108 tutorial clips in Polish, German, and English.
  • 39 additional French tutorial clips were added.
  • All 147 clips were checked for accuracy against source text.

The Claim Row Stopped the Duplicate. My Agent Sent the Payment Twice Anyway.

Yesterday I fixed my webhook duplicates with one claimable row per delivery key. A slow receiver took 2.5 seconds to answer, my sweeper ticked every second, and the same payment went out three times…

  • Author resolved webhook duplicates using one claimable row per delivery key
  • Slow receiver caused three payments before first acknowledgment arrived
  • Claim row stops resend, but agent believes step failed, leading to duplicate payments

More from Wednesday 18 November →