[packages/amavisd-new] Up to 2.15.0
arekm
arekm at pld-linux.org
Thu Oct 29 08:24:24 CET 2026
commit 855dbf1b034a8f30cf4beb19fa1fc66608b58928
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 29 01:52:24 2026 +0100
Up to 2.15.0
Fixes CVE-2024-28054.
amavisd-new-config.patch | 44 +++++++++----------------------------------
amavisd-new-tools-dbdir.patch | 16 ++++++++--------
amavisd-new.spec | 33 ++++++++++++++++++++------------
3 files changed, 38 insertions(+), 55 deletions(-)
---
diff --git a/amavisd-new.spec b/amavisd-new.spec
index 2f7fe4a..76a5520 100644
--- a/amavisd-new.spec
+++ b/amavisd-new.spec
@@ -6,13 +6,13 @@
Summary: A Mail Virus Scanner with SpamAssassin support - daemon
Summary(pl.UTF-8): Antywirusowy skaner poczty elektronicznej z obsługą SpamAssasina - demon
Name: amavisd-new
-Version: 2.12.2
+Version: 2.15.0
Release: 1
Epoch: 1
License: GPL
Group: Applications/Mail
Source0: https://gitlab.com/amavis/amavis/-/archive/v%{version}/amavis-v%{version}.tar.bz2
-# Source0-md5: d2ccce027ff4e8502326638e9ef2142b
+# Source0-md5: d330204f86aec494f23ca93674574c29
Source1: %{name}.init
Source2: %{name}.tmpfiles
Source3: %{name}.tmpwatch
@@ -39,7 +39,7 @@ Requires: perl-Convert-UUlib >= 1.05
Requires: perl-File-LibMagic
Requires: perl-IO-Compress
Requires: perl-MIME-tools
-Requires: perl-Net-LibIDN
+Requires: perl-Net-LibIDN2
Requires: perl-Net-Server >= 0.93
Requires: perl-Time-HiRes >= 1.49
Requires: perl-Unix-Syslog
@@ -104,7 +104,10 @@ Conflicts: amavis-stats <= 0.1.12
Conflicts: postfix < 2.7.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _debugsource_packages 0
+# perl and shell only, no compilable sources
+%undefine _debugsource_packages
+# optional backends (SQL, LDAP, DKIM, SpamAssassin, Rspamd, ZeroMQ), loaded only when configured
+%define _noautoreq_perl DBI Mail::DKIM.* Mail::SpamAssassin Net::LDAP.* ZMQ::FFI.* LWP::UserAgent JSON Crypt::OpenSSL::RSA Net::DNS::Resolver
%define _tmpwatchdir /etc/tmpwatch
%define schemadir /usr/share/openldap/schema
@@ -143,12 +146,15 @@ install -d $RPM_BUILD_ROOT%{_var}/spool/amavis/{runtime,virusmails,db} \
$RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{_tmpwatchdir}} \
$RPM_BUILD_ROOT%{systemdunitdir}
-install -p amavisd $RPM_BUILD_ROOT%{_sbindir}
-install -p amavisd-agent $RPM_BUILD_ROOT%{_sbindir}
-install -p amavisd-nanny $RPM_BUILD_ROOT%{_sbindir}
-install -p amavisd-release $RPM_BUILD_ROOT%{_sbindir}
-install -p amavisd-submit $RPM_BUILD_ROOT%{_sbindir}
-cp -p amavisd.conf $RPM_BUILD_ROOT%{_sysconfdir}/amavisd.conf
+install -p bin/amavisd $RPM_BUILD_ROOT%{_sbindir}
+install -p bin/amavisd-agent $RPM_BUILD_ROOT%{_sbindir}
+install -p bin/amavisd-nanny $RPM_BUILD_ROOT%{_sbindir}
+install -p bin/amavisd-release $RPM_BUILD_ROOT%{_sbindir}
+install -p bin/amavisd-submit $RPM_BUILD_ROOT%{_sbindir}
+cp -p conf/amavisd.conf $RPM_BUILD_ROOT%{_sysconfdir}/amavisd.conf
+
+install -d $RPM_BUILD_ROOT%{perl_vendorlib}
+cp -pr lib/* $RPM_BUILD_ROOT%{perl_vendorlib}
install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/amavisd
cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_tmpwatchdir}/%{name}.conf
@@ -156,7 +162,7 @@ cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_tmpwatchdir}/%{name}.conf
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
cp -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/amavisd.service
-install -Dp LDAP.schema $RPM_BUILD_ROOT%{schemadir}/amavisd-new.schema
+install -Dp contrib/LDAP.schema $RPM_BUILD_ROOT%{schemadir}/amavisd-new.schema
%clean
rm -rf $RPM_BUILD_ROOT
@@ -199,12 +205,15 @@ fi
%files
%defattr(644,root,root,755)
-%doc AAAREADME.first INSTALL RELEASE_NOTES README_FILES/* test-messages
+%doc AAAREADME.first README.md RELEASE_NOTES README_FILES/*
%attr(755,root,root) %{_sbindir}/amavisd
%attr(755,root,root) %{_sbindir}/amavisd-agent
%attr(755,root,root) %{_sbindir}/amavisd-nanny
%attr(755,root,root) %{_sbindir}/amavisd-release
%attr(755,root,root) %{_sbindir}/amavisd-submit
+%{perl_vendorlib}/Amavis.pm
+%{perl_vendorlib}/Amavis
+%{perl_vendorlib}/Mail/SpamAssassin/Logger/Amavislog.pm
%{systemdunitdir}/amavisd.service
%attr(754,root,root) /etc/rc.d/init.d/amavisd
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/amavisd.conf
diff --git a/amavisd-new-config.patch b/amavisd-new-config.patch
index 14a0257..38205c4 100644
--- a/amavisd-new-config.patch
+++ b/amavisd-new-config.patch
@@ -1,6 +1,6 @@
-diff -urp amavis-v2.12.1.orig/amavisd.conf amavis-v2.12.1/amavisd.conf
---- amavis-v2.12.1.orig/amavisd.conf 2020-11-13 13:55:37.000000000 +0100
-+++ amavis-v2.12.1/amavisd.conf 2021-01-24 21:25:54.841592502 +0100
+diff -urp amavis-v2.15.0.orig/conf/amavisd.conf amavis-v2.15.0/conf/amavisd.conf
+--- amavis-v2.15.0.orig/conf/amavisd.conf 2026-09-02 12:18:17.000000000 +0200
++++ amavis-v2.15.0/conf/amavisd.conf 2026-10-29 01:49:25.571021461 +0100
@@ -10,32 +10,32 @@ use strict;
# COMMONLY ADJUSTED SETTINGS:
@@ -13,10 +13,10 @@ diff -urp amavis-v2.12.1.orig/amavisd.conf amavis-v2.12.1/amavisd.conf
# truncation in /proc/<pid>/stat and ps -e output
$max_servers = 2; # num of pre-forked children (2..30 is common), -m
--$daemon_user = 'vscan'; # (no default; customary: vscan or amavis), -u
--$daemon_group = 'vscan'; # (no default; customary: vscan or amavis), -g
-+$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u
-+$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g
+-$daemon_user = 'vscan'; # (no default; customary: vscan or amavis), -u
+- at daemon_groups = 'vscan'; # (leave empty to use $daemon_user's supplementary groups), -g
++$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u
++ at daemon_groups = 'amavis'; # (leave empty to use $daemon_user's supplementary groups), -g
$mydomain = 'example.com'; # a convenient default for other settings
@@ -34,7 +34,7 @@ diff -urp amavis-v2.12.1.orig/amavisd.conf amavis-v2.12.1/amavisd.conf
# $daemon_chroot_dir = $MYHOME; # chroot directory or undef, -R
-# $db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
-+$db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
++$db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
# $helpers_home = "$MYHOME/var"; # working directory for SpamAssassin, -S
-# $lock_file = "$MYHOME/var/amavisd.lock"; # -L
-# $pid_file = "$MYHOME/var/amavisd.pid"; # -P
@@ -53,33 +53,7 @@ diff -urp amavis-v2.12.1.orig/amavisd.conf amavis-v2.12.1/amavisd.conf
# option(s) -p overrides $inet_socket_port and $unix_socketname
$inet_socket_port = 10024; # listen on this local TCP port(s)
-@@ -382,16 +383,15 @@ $banned_filename_re = new_RE(
- # qr/^(?:310|420)[,\s]*(?:.* <<< )?(.+?)(?: ; |$)/m ],
- # settings for the SAVAPI3.conf: ArchiveScan=1, HeurLevel=2, MailboxScan=1
-
--# ### http://www.clamav.net/
--# ['ClamAV-clamd',
--# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],
--# qr/\bOK$/m, qr/\bFOUND$/m,
--# qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
--# # NOTE: run clamd under the same user as amavisd - or run it under its own
--# # uid such as clamav, add user clamav to the amavis group, and then add
--# # AllowSupplementaryGroups to clamd.conf;
--# # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
--# # this entry; when running chrooted one may prefer a socket under $MYHOME.
-+['ClamAV-clamd',
-+ \&ask_daemon, ["CONTSCAN {}\n", "/var/lib/clamav/clamd.socket"],
-+ qr/\bOK$/, qr/\bFOUND$/,
-+ qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
-+# NOTE: run clamd under the same user as amavisd - or run it under its own
-+# uid such as clamav, add user clamav to the amavis group, and then add
-+# AllowSupplementaryGroups to clamd.conf;
-+# NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
-+# this entry; when running chrooted one may prefer a socket under $MYHOME.
-
- # ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred)
- # # note that Mail::ClamAV requires perl to be build with threading!
-@@ -580,16 +580,21 @@ $banned_filename_re = new_RE(
+@@ -596,16 +597,21 @@ $banned_filename_re = new_RE(
# NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer
# see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783
diff --git a/amavisd-new-tools-dbdir.patch b/amavisd-new-tools-dbdir.patch
index 4fe74d1..05b4113 100644
--- a/amavisd-new-tools-dbdir.patch
+++ b/amavisd-new-tools-dbdir.patch
@@ -1,7 +1,7 @@
-diff -urp amavis-v2.12.1.orig/amavisd-agent amavis-v2.12.1/amavisd-agent
---- amavis-v2.12.1.orig/amavisd-agent 2020-11-13 13:55:37.000000000 +0100
-+++ amavis-v2.12.1/amavisd-agent 2021-01-24 21:28:13.409592502 +0100
-@@ -53,7 +53,7 @@ use BerkeleyDB;
+diff -urp amavis-v2.15.0.orig/bin/amavisd-agent amavis-v2.15.0/bin/amavisd-agent
+--- amavis-v2.15.0.orig/bin/amavisd-agent 2026-09-02 12:18:17.000000000 +0200
++++ amavis-v2.15.0/bin/amavisd-agent 2026-10-29 01:49:38.905439106 +0100
+@@ -54,7 +54,7 @@ use BerkeleyDB;
my($dbfile) = 'snmp.db';
my($db_home) = # DB databases directory
@@ -10,10 +10,10 @@ diff -urp amavis-v2.12.1.orig/amavisd-agent amavis-v2.12.1/amavisd-agent
my($wakeuptime) = 10; # -w, sleep time in seconds, may be fractional
my($repeatcount); # -c, repeat count (when defined)
-diff -urp amavis-v2.12.1.orig/amavisd-nanny amavis-v2.12.1/amavisd-nanny
---- amavis-v2.12.1.orig/amavisd-nanny 2020-11-13 13:55:37.000000000 +0100
-+++ amavis-v2.12.1/amavisd-nanny 2021-01-24 21:28:13.409592502 +0100
-@@ -61,7 +61,7 @@ my($activettl) = 10*60; # stuck active c
+diff -urp amavis-v2.15.0.orig/bin/amavisd-nanny amavis-v2.15.0/bin/amavisd-nanny
+--- amavis-v2.15.0.orig/bin/amavisd-nanny 2026-09-02 12:18:17.000000000 +0200
++++ amavis-v2.15.0/bin/amavisd-nanny 2026-10-29 01:49:38.905754204 +0100
+@@ -62,7 +62,7 @@ my($activettl) = 10*60; # stuck active c
my($dbfile) = 'nanny.db';
my($db_home) = # DB databases directory
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/amavisd-new.git/commitdiff/855dbf1b034a8f30cf4beb19fa1fc66608b58928
More information about the pld-cvs-commit
mailing list