Changes for version 4.20261122 - 2026-11-23

  • Tests: Replace fixed sleeps in the functional tests with waits for the milter, sockets, and metrics to be ready. The suite takes around 45 seconds rather than 240.
  • Tests: Run each functional test file in its own temporary directory, and give each HandlerTester its own cache, lib, and spool directories, so test files can run in parallel. Set AUTHMILTER_KEEP_TEST_DIR to keep the functional test directory.
  • Tests: dzil test and release run tests in parallel.
  • Tests: TestTimeout no longer sets its own alarm, so the configured callback timeouts are exercised.
  • Tests: Create t/tmp in every unit test that writes to it.
  • Core: The umask and metric_umask settings now only set the mode of unix sockets. Previously they changed the process umask, which applied to every file created afterwards, and the last unix connection's umask applied to all unix sockets. Connections and metrics without their own umask use the top level umask, so socket modes are unchanged for most configs. NOTE: Files are now created with the umask the milter is started with, so with a umask of 0000 files such as the DMARC report database are no longer world writable. Anything which writes to them as a different user, for example sending DMARC reports, may need its permissions adjusting.
  • Core: The example config now uses a umask of 0007, so unix sockets are only accessible to the milter user and rungroup, rather than 0000 which allowed any local user to connect. The MTA must be in rungroup to connect to a unix socket.

Documentation

A Perl Mail Authentication Milter
Manage the Authentication Milter Block List
A Perl Mail Authentication Milter client
Work with Authentication Milter logs

Modules

A Perl Mail Authentication Milter
Command to add a block to a given file
Command to delete a block for a given file
Command to list current blocks for a given file
Command to convert an authentication milter arex log back into an A-R header
Client for connecting back to the authmilter server
Load config files for Authentication Milter
Define and export useful constants
Class representing an exception
Load and serve static files via the in-built http server.
Handler class for sending data to Abusix
Handler class for Address alignment
Handler class for SMTP Auth
Block mail based on simple rules
Handler class for Local IP Connections
Handler class for logging of headerss
Handler class for PTR checking
Handler class for RBLDNS checks
Handler class for Checking Return address validity
Handler class for Removing headers
Handler class for message size metrics
Handler class for Trusted IP addresses
Handler class for Google specific DKIM
Class for metrics generation
Class for Grafana dashboards
Local modified copy of Net::Milter
Patches to Net::Server::PreFork
Setup system wide pragmas
Class used for testing