✉️ Composable all-in-one mail server.
Repo foxcpp/maddy, read from GitHub 5 h ago. foxcpp has not joined Take My Repo.
This release includes fixes for two reported security issues: IMAP
parsing now limits command size and nesting depth, and LDAP
authentication cleanup avoids a nil-pointer panic in a connection error
path.
Operators using IMAP or LDAP authentication should upgrade to receive
these fixes.
IMAP behavior is corrected for read-only EXAMINE sessions and RENAME INBOX, and searches using SINCE or ON now include messages from the
specified day. The release also adds optional SMTP reverse-DNS lookup
control, bounded command execution for check.command, and
platform-specific default directories.
The IMAP parser now rejects excessively long commands and deeply nested
lists, limiting resource use while parsing client input. Previously, a
client able to reach an IMAP listener could send input without these
parser bounds.
Affects configurations exposing an IMAP endpoint to clients. No
additional configuration is required for the parser limits.
If rebinding a pooled LDAP connection failed, cleanup could clear the
shared connection and then dereference it while trying to close it
again, panicking the process. Cleanup now returns after invalidating the
connection.
Affects configurations using auth.ldap; the problematic path requires
a rebind failure while returning a connection to the pool.
CLOSE, andMOVE and UID MOVE on a read-only selection (#906).RENAME INBOX, make the new empty INBOXSINCEON searches (#887).auth_map only once during SASL LOGIN authentication.rdns_lookup to disable client reverse-DNSyes; setting it to no skips PTR lookupstimeout and interrupt_timeout controls for%ProgramData%\maddy for configuration,data and run directories, and %ProgramFiles%\maddy for/var/run/maddy for runtime files and/usr/lib/maddy for libexec (#290) (PR #900, thanks @AdamMagued).tcp4, tcp6, fd and fdname endpoint addresses,expand_placeholders directiveexpand_replaceholders spelling with a+tag stripping example for table.chain (#896) (PRThis release includes fixes for several reported security
vulnerabilities with CVSS severity ranging Low to High, including
two DMARC verification bypasses. Upgrade is highly recommended.
This release fixes several long-standing issues in go-imap-sql
implementation. Upgrading is highly recommended for anyone using
IMAP implementation. Fixes are fully compatible with 0.9.6 -
messages written by 0.9.7 are readable by 0.9.6 as-is and vice versa.
Now storage.imapsql can store malformed MIME messages. Such messages are
stored as a single-part application/octet-stream message. This can cause
display issues with most IMAP clients but no data is lost.
Messages whose From domain contained uppercase characters could be checked
against the wrong organizational domain, so the domain’s published DMARC policy
was not applied. An attacker could spoof a domain that publishes p=reject or
p=quarantine and get the message delivered.
Affects configurations using inbound SMTP with dmarc yes (default).
Messages with a malformed or multiple-address From header were treated as
having no DMARC policy and accepted, allowing an attacker to bypass DMARC by
deliberately breaking the From header. The new dmarc_reject_invalid_from
option controls this behavior; it is enabled in the new default configuration,
while existing deployments must enable it explicitly.
Affects configurations using inbound SMTP with dmarc yes (default).
Unknown usernames previously caused fewer LDAP operations than existing
usernames, allowing unauthenticated clients to enumerate valid accounts through
timing differences. This can aid targeted phishing and credential-stuffing
attacks.
Affects all configurations using auth.ldap.
A bare IPv6 address in the proxy_protocol trust list was treated as a /32
network, trusting unrelated IPv6 peers in the same range. A directly connected
attacker could forge PROXY headers to choose the client IP seen by SMTP/IMAP,
bypassing rate limits and DNSBL checks and falsifying audit logs.
Affects configurations using proxy_protocol on a public-facing endpoints (not
recommended in general).
With a source limit but no ip limit, exhausting the source bucket set made
the cleanup path dereference a nil IP limiter. A remote sender could trigger a
nil-pointer panic, disrupting message acceptance on the affected SMTP endpoint.
Date header with a valid value instead ofmaddy_smtp_failed_logins metric and count failed450 response instead of a554 (#872) (PR #874, thanks @amlaban65).APPENDLIMIT reporting: STATUS now returns thereroute (#786).SEARCH UNSEEN returning flags from other mailboxes and\Seen flag set byContent-Transfer-Encoding as 7BIT5min × 1.25^(n−1) schedule (#678).initial_retry_time to 5m from 15m, add missingmaddy version and the server startup log report the same version,/etc/resolv.conf when it changes (checked at most every fivebash to the image so the command system filter can be(aliases)auth/pam, endpoint/dovecot_sasld,endpoint/imap and queue tests.proxy_protocol: Require explicit trust all to allow any IP to use PROXY.
This prevents unintended clients from supplying PROXY protocol headers (GHSA-rpmv-mh3g-cf5c).
auth/plain_separate: Require either a pass directive or no_pass.
This prevents misconfigured authentication modules from skipping
password verification (GHSA-vc2f-9mpf-273q).
endpoint/smtp: Correct handling of the TLS-Required header.
The override is now limited to Submission endpoints and is ignored on regular SMTP/LMTP (GHSA-g8mw-9qf4-cg5x).
limits/limiters: Fix an incorrect bucket capacity check that could
result in deadlock when a lot (20k+) of distinct domains are accumulated in limiter bucket.
(GHSA-f2p9-pvm4-fhrj).
Sender header by default.v prefix from version tags when building custom versions.Special handling for maddyctl symlink is removed. maddy executable
will no longer change behavior if called as maddyctl.
Default to 'maddy run' if no command is explicitly specified
has been removed as well. The warning about its deprecation was here
since 0.6 (4 years ago).
The reason for removal is inconsistency in --log flag handling
caused by related hacks in CLI setup code.
log: Refactor to define proper loggers tree
This in turn should fix numerous inconsistencies in how
logger is configured.
Fixed limiters group configuration (thanks Denis Girko!)
Per-destination limits are now initialized correctly and work.
storage/imapsql: Upgrade go-imap-sql to fix SQLITE_BUSY issues
This will fix a lot of "database is locked" errors for imapsql use
with SQLite.
storage/imapsql: Fix handling of serialization errors
If "database is locked" still happens, clients will receive proper
temporary error codes instead of 5xx
This release includes the fix for the LDAP injection vulnerability
in auth.ldap module (advisory GHSA-5835-4gvc-32pc, CVE-2026-40193).
All users using auth.ldap are advised to upgrade, as this vulnerability
can be used to extract LDAP directory information, including password
hashes and other authorization information.
Thanks @ RealHurrison and @Ghost1032 for detailed report!