milterfrom 1.0.4-1
Package Information
| Description | milter enforcing equal From header address and envelope sender This milter compares the envelope sender with the sender specified in the message header, preventing logged-in users from spoofing the From address. |
|---|---|
| Maintainer | Andrea Pappacoda <tachi@debian.org> |
| Changed By | Andrea Pappacoda <tachi@debian.org> |
| Sponsor | tachi@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/debian/milterfrom.git (browse) |
| Closes | #1155482 |
| Tracker | https://tracker.debian.org/pkg/milterfrom |
| Uploaded | 4 hours ago |
New Package Report
.changes
| Changed-By | Andrea Pappacoda <tachi@debian.org> |
|---|---|
| Architecture | amd64 source |
| Distribution | unstable |
| Date | Fri, 27 Nov 2026 01:04:45 +0100 |
| Source | milterfrom |
| Version | 1.0.4-1 |
Changelog
milterfrom (1.0.4-1) unstable; urgency=low . * Initial release. (Closes: #1155482)
.dsc
| Component | main |
|---|---|
| Package-List | milterfrom deb mail optional arch=any |
| Section | |
| Priority | optional |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: MilterFrom Upstream-Contact: https://github.com/mvonbuelow/milterfrom/issues/new Source: https://github.com/mvonbuelow/milterfrom Files: * Copyright: 2017 Max von Buelow License: BSD-3-Clause Files: debian/* Copyright: 2025 Andrea Pappacoda <tachi@debian.org> License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the owner nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DFSG Assistant LLM REVIEW 0 blocker, 0 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 2 hours ago.
Report
DFSG NEW review for milterfrom version 1.0.4-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: Yes
- Issues: 0 blocker, 0 important, 2 minor
- debian/watch: absent
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The whole tree is BSD-3-Clause: src/milterfrom.c carries the full notice for Max von Buelow (2017) and README.md states the same licence, with no other holder or licence text anywhere. The DEP-5 debian/copyright names that holder in Files: *, gives the debian packaging its own stanza, and reproduces the complete BSD-3-Clause text (the licence is not in /usr/share/common-licenses). No non-free terms, no unlicensed files, no vendored third-party code, and no opaque or generated files whose source is missing.
Packaging
Modern, conventional dgit-maint-merge packaging: debhelper compat 14 with dh-sequence-single-binary, dpkg-build-api (= 1), hardening and CMake IPO correctly wired, Build-Depends-Arch complete, DEP-14 source layout with README.source, upstream/metadata present, and a single documented combined patch. The shipped systemd unit installs and is enabled correctly (systemd creates the socket directory), but one sandbox setting disables the program's only logging path.
Issues
minor packaging 1. milterfrom.service sets RestrictAddressFamilies=none, blocking the AF_UNIX socket that syslog needs ◂
- Files:
systemd/milterfrom.service.in:26,src/milterfrom.c:76,src/milterfrom.c:419 - Basis: checked, in the package or with a reference tool
- Evidence: systemd/milterfrom.service.in:26:
RestrictAddressFamilies=none; src/milterfrom.c:419:openlog("milterfrom", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_MAIL);and :76:syslog(LOG_INFO, "%s for authenticated user (%s) from (%s)", ...). systemd.exec(5): "When "none" is specified, then all address families will be denied." - Problem: milterfrom reports every rejection, null-sender decision and parse error through syslog(3), which opens an AF_UNIX socket to /dev/log; the unit denies all address families, so these messages cannot be sent and the rejection audit trail (the program's only logging) is silently lost. Filtering itself still works because the listening socket is inherited on fd 0, which is why the defect is easy to miss.
- Fix: Change the line to
RestrictAddressFamilies=AF_UNIX(or drop it), keep the rest of the sandbox, and forward the change upstream.
minor packaging 2. There is no debian/watch ◂
- Files:
debian/watch - Basis: found by the review tooling's own checks
- Problem: Without a watch file new upstream releases are not noticed by uscan, the tracker or the maintainer's tools.
- Fix: Add a
debian/watchin version 5 format, or, if upstream has no usable release channel, one holding a comment that says so.
Verified ◂
- Read the whole tree except .pc/ (ignored): CHANGELOG.md, CMakeLists.txt, README.md, .gitignore, cmake/FindMilter.cmake, systemd/milterfrom.service.in, systemd/milterfrom.socket, man/milterfrom.1 and src/milterfrom.c (the latter in full over lines 1-63, 123-303 and 304-421), plus every file under debian/.
- Licensing evidence: src/milterfrom.c:4
Copyright (c) 2017, Max von Buelowwith the full BSD-3-Clause grant at lines 9-31, and README.md:102Licensed under the 3-Clause BSD License; no other copyright holder, SPDX identifier or licence wording exists in the tree, and grep for GPL/LGPL/Apache/MIT/NC/ND/Commons Clause found only BSD boilerplate. Files: * names Max von Buelow and the standalone License paragraph reproduces the full BSD-3-Clause text (not in /usr/share/common-licenses). - Prescan files accounted for: man/milterfrom.1 and systemd/milterfrom.socket are created by debian/patches/dgit-changes (
--- /dev/null), not upstream files; the debian/* stanza covering that patch describes them, and their notices name the same holder (Andrea Pappacoda) that stanza gives. - No built programs, libraries, bytecode, minified code, archives, PDFs, fonts or images in the tree; .gitignore files are plain text; no vendored third-party code and no files without a licence.
- debian/copyright is valid DEP-5: exact Format URL, Upstream-Name/Source present, Files: * plus debian/*, later stanza overriding the earlier, one matching standalone License paragraph, no Files-Excluded.
- debian/control dependencies all resolve in the archive: debhelper-compat (= 14) and dh-sequence-single-binary provided by debhelper 14.5, dpkg-build-api (= 1) by dpkg-dev 1.23.12, libmilter-dev 8.18.2-2, systemd-dev 262.2-1, pkg-config is the current transitional package to pkgconf (hence the lintian override).
- Standards-Version 4.7.4 matches the reviewing Policy 4.7.4.1 in its first two components; package is Architecture: any, Multi-Arch: foreign, Section: mail, with no arch-indep binary, so Build-Depends-Arch is appropriate.
- debhelper compat 14: relationship substvars are added by dh_gencontrol, so the absence of an explicit Depends field is correct; compat 13+ makes dh skip dh_auto_test/dh_strip overrides under nocheck/nostrip, and no such override exists here.
- debhelper 14.5 defines $(DH_OVERRIDDEN_COMMAND) for override targets, so rules' override_dh_auto_configure works with the archive's debhelper; the CMake IPO setting toggles with the noopt build option.
- The patched CMakeLists.txt installs the binary, man page and both units (systemd.pc gives /usr/lib/systemd/system); dh_installsystemd will find and enable milterfrom.socket, and systemd.socket(5) DirectoryMode creates /var/spool/postfix/milterfrom, so the unit does not need extra directory handling.
- debian/patches contains one dgit combined patch with a series entry; README.source documents the dgit-maint-merge and DEP-14 workflow, and debian/source/options' auto-commit is a valid dpkg-source option.
- debian/changelog: distribution unstable, version 1.0.4-1, initial upload closing #1155482, urgency low; changelog date 2026-11-27 is a Friday and not in the future.
Not confirmed ◂
- No build or runtime test was made; all statements about the systemd units come from their text, milterfrom.c and the systemd manual pages, not from running them.
- debian/rules uses $(DH_OVERRIDDEN_COMMAND), which dh(1) says requires debhelper 13.25; debian/control only names debhelper-compat (= 14). I could not determine on this system whether that relation can be satisfied by a debhelper older than 13.25 (14.5 is installed here), so I could not confirm whether an older suite would fail in that override. A build there would show it.
- milterfrom.service's ExecReload sends SIGHUP, but milterfrom installs no SIGHUP handler; I could not check whether libmilter itself handles it, so I could not confirm whether
systemctl reload milterfrommerely does nothing or terminates the daemon.
Proposed changes ◂
None.