7
0

57 Commits

Author SHA256 Message Date
AutoGits PR Review Bot
ce524a91f3 Initial empty branch 2026-01-16 15:58:57 +01:00
Arjen de Korte
14aeee4289 Update spamassassin to version 4.0.2 and spampd to version 2.62 2025-09-02 22:22:02 +02:00
8e3586e486 Accepting request 1239052 from devel:languages:perl
- drop iXHash plugin (last provider stopped operation)
  * remove iXhash2-4.00.tar.gz
  * remove iXhash2-meta-rules.patch

OBS-URL: https://build.opensuse.org/request/show/1239052
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=93
2025-01-21 20:09:46 +00:00
c296f791e0 drop iXHash plugin
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=166
2025-01-20 14:19:46 +00:00
3e22e83926 Accepting request 1166601 from devel:languages:perl
- fix iXhash2-meta-rules.patch
- update to patch release version 4.0.1
  - Incompatibilities with some versions of perl and some perl modules
    that have been released since the release of SpamAssassin 4.0.0
  - Problems using cpan to install SpamAssassin when certain required
    or optional modules are not already installed
  - Support for space characters in the path name of some executables
    used by certain plugins
  - Improved handling of URL shortener link redirects
  - Improved TxRep locking management
  - Added Mail::SpamAssassin::Plugin::AuthRes plugin to use
    Authentication-Results header fields in other plugins
  - Added a Pyzor Perl implementation
  - Perl crash when certain uri_detail rules processed some messages
    with UTF-8 characters
  - Inconsistent handling of newlines in header rules
  - Text or HTML content placed in octet-stream attachments by
    spammers to bypass SpamAssassin scanning
  - Implemented TCP fallback for truncated DNS UDP replies
- Refresh patch-URIDNSBL
- Drop undocumented patch-SQL_ASCII_SORT breaking sqlite
- Drop most of iXhash2-meta-rules.patch (additional services no longer exist)

OBS-URL: https://build.opensuse.org/request/show/1166601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=92
2024-04-10 15:48:59 +00:00
30656d5382 fix iXhash2-meta-rules.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=164
2024-04-10 08:26:12 +00:00
6a61e2ea19 Accepting request 1166486 from home:dstoecker:branches:devel:languages:perl
- update to patch release version 4.0.1
  - Incompatibilities with some versions of perl and some perl modules
    that have been released since the release of SpamAssassin 4.0.0
  - Problems using cpan to install SpamAssassin when certain required
    or optional modules are not already installed
  - Support for space characters in the path name of some executables
    used by certain plugins
  - Improved handling of URL shortener link redirects
  - Improved TxRep locking management
  - Added Mail::SpamAssassin::Plugin::AuthRes plugin to use
    Authentication-Results header fields in other plugins
  - Added a Pyzor Perl implementation
  - Perl crash when certain uri_detail rules processed some messages
    with UTF-8 characters
  - Inconsistent handling of newlines in header rules
  - Text or HTML content placed in octet-stream attachments by
    spammers to bypass SpamAssassin scanning
  - Implemented TCP fallback for truncated DNS UDP replies
- Refresh patch-URIDNSBL
- Drop undocumented patch-SQL_ASCII_SORT breaking sqlite
- Drop most of iXhash2-meta-rules.patch (additional services no longer exist)

OBS-URL: https://build.opensuse.org/request/show/1166486
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=163
2024-04-09 19:56:58 +00:00
fd6550672d Accepting request 1152512 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1152512
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=91
2024-02-28 18:44:30 +00:00
113ddfc676 Accepting request 1151565 from home:dimstar:rpm4.20:s
Prepare for RPM 4.20

OBS-URL: https://build.opensuse.org/request/show/1151565
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=161
2024-02-27 20:58:10 +00:00
aef3009eb5 Accepting request 1136798 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1136798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=90
2024-01-05 20:39:37 +00:00
783bbdfa7a Accepting request 1136753 from home:pmonrealgonzalez:INET6
- Remove the dependency on perl(IO::Socket::INET6) as it has been
  deprecated by upstream, is no longer suitable for use and its not
  being maintained. A compatible replacement for this package is
  perl(IO::Socket::IP) which is shipped by the perl-base package.

OBS-URL: https://build.opensuse.org/request/show/1136753
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=159
2024-01-04 12:49:35 +00:00
cab1be39fe Accepting request 1045241 from devel:languages:perl
- Add BuildRequires Text::Diff that was accidentally removed from
  original submission
- Update known warnings
  % spamassassin-rpmlintrc
- Update to spamassissin 4.0.0:
  * Notable internal changes:
    - Meta rules no longer use priority values, they are evaluated
      dynamically when the rules they depend on are finished
    - DNS and other asynchronous lookups like DCC or Razor2 plugins
      are now launched when priority -100 is reached. This allows
      short circuiting at lower priority without sending unneeded
      DNS queries
    - New internal Mail::SpamAssassin::GeoDB module supporting
      RelayCountry and URILocalBL plugins provides a unified
      interface to Geographic IP modules. These include:
        MaxMind::DB::Reader (GeoIP2)
        Geo::IP
        IP::Country::DB_File
        IP::Country::Fast.
  * New plugins:
    - Mail::SpamAssassin::Plugin::ExtractText
    - Mail::SpamAssassin::Plugin::DMARC
    - Mail::SpamAssassin::Plugin::DecodeShortURLs
  * HashCash module has been removed completely
  * Full detailed changelog:
    https://svn.apache.org/repos/asf/spamassassin/trunk/Changes
- Update to iXhash2 4.00:
  * Minimum required version: SpamAssassin 4.0.0
- Update to spampd 2.61:
  * Performance and diagnostic improvements, quicker startups, and
    a lot of documentation updates.
  * Add support for configuration files (examples included in /misc
    folder and in POD).
  * Add optional "scalable mode" using Net::Server::PreFork module
    (16-year TODO!). More info in POD.
  * Add --logfile option to control logging destination(s) (syslog,
    stderr, and/or file/device).
  * Add --logident, --logfacility options for syslog.
  * Add multiple levels of help, including full "man" output with
    optional HTML formatting.
  * Add --show <thing> argument for printing default option values
    and other debug.
  * Fix SpamAssassin debug logging with versions 3.1+ (output
    was going to stderr/wrong syslog/null).
  * Fix for IPv6 addresses being used on --host and --relayhost
    options (was not possible due to ":<port>" check).
  * SIGHUP will now reload SpamAssassin and SpamPD configuration files
    (and all module code), still with graceful child process shutdown.
  * Use SpamAssassin::Logger module (with SA 3.1+) for all logging.
  * Log to stderr by default if running non-daemonized
  * Child processes are now renamed to "spampd child"
    to distinguish them from the parent in task lists.
  * Now requires Net::Server v0.89+ (though latest 2.009 is recommended).
  * The --auto-whitelist option is no longer allowed with SpamAssassin v3+.
  * Improve --debug option, adding ability to specify
    SpamAssassin (v3.1+) debug areas (aka channels/facilities).
  * All boolean options can take 0/1 argument and be negated
    with "no-" prefix.
  * The --children (-c) option is now more formally named
    --max-servers (-mxs), but still accepted.
  * IO::Socket::UNIX and ::IP are only required if actually
    needed for --relaysocket / --relayhost options.

OBS-URL: https://build.opensuse.org/request/show/1045241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=89
2022-12-25 14:14:39 +00:00
8da2a6c94b Accepting request 1045238 from home:adkorte:branches:devel:languages:perl
- Add BuildRequires Text::Diff that was accidentally removed from
  original submission

OBS-URL: https://build.opensuse.org/request/show/1045238
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=157
2022-12-24 19:02:56 +00:00
abc668ea00 Accepting request 1045234 from home:adkorte
- Update known warnings
  % spamassassin-rpmlintrc

- Update to spamassissin 4.0.0:
  * Notable internal changes:
    - Meta rules no longer use priority values, they are evaluated
      dynamically when the rules they depend on are finished
    - DNS and other asynchronous lookups like DCC or Razor2 plugins
      are now launched when priority -100 is reached. This allows
      short circuiting at lower priority without sending unneeded
      DNS queries
    - New internal Mail::SpamAssassin::GeoDB module supporting
      RelayCountry and URILocalBL plugins provides a unified
      interface to Geographic IP modules. These include:
        MaxMind::DB::Reader (GeoIP2)
        Geo::IP
        IP::Country::DB_File
        IP::Country::Fast.
  * New plugins:
    - Mail::SpamAssassin::Plugin::ExtractText
    - Mail::SpamAssassin::Plugin::DMARC
    - Mail::SpamAssassin::Plugin::DecodeShortURLs
  * HashCash module has been removed completely
  * Full detailed changelog:
    https://svn.apache.org/repos/asf/spamassassin/trunk/Changes

OBS-URL: https://build.opensuse.org/request/show/1045234
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=156
2022-12-24 17:15:58 +00:00
251d6e2257 Accepting request 947615 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/947615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=88
2022-01-22 07:17:53 +00:00
cd3218c7d7 Accepting request 947612 from home:jsegitz:branches:devel:languages:perl
- Drop ProtectHome from spamd.service and spampd.service. Unfortunately
  spamassing writes there, so ProtectHome=read-only doesn't work. 
  Whitelisting a specific part has a too high chance of breaking for
  this package (bsc#1193248)

OBS-URL: https://build.opensuse.org/request/show/947612
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=155
2022-01-20 06:35:38 +00:00
707814034e Accepting request 933217 from devel:languages:perl
- Set ProtectHome=false for spampd.service, as this breaks loading
  and storing data files in /home/vscan.
- Added hardening to systemd service(s) (bsc#1181400). Modified:
  * spamd.service
  * spampd.service

OBS-URL: https://build.opensuse.org/request/show/933217
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=87
2021-11-24 22:54:19 +00:00
bc24745aca OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=154 2021-11-23 08:23:55 +00:00
ce78cc5974 Breaks loading data files in /home/vscan.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=153
2021-11-23 08:22:56 +00:00
c909b25a99 Accepting request 932932 from home:jsegitz:branches:systemdhardening:devel:languages:perl
- Added hardening to systemd service(s) (bsc#1181400). Modified:
  * spamd.service
  * spampd.service

OBS-URL: https://build.opensuse.org/request/show/932932
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=152
2021-11-22 09:40:17 +00:00
98f01bfa53 Accepting request 917792 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/917792
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=86
2021-09-11 20:24:28 +00:00
1462d6dc14 Accepting request 917789 from home:varkoly:branches:devel:languages:perl
- spamassassin: sa-update.timer does not work
  (bsc#1175375)
  Remove sence less SPAM_SA_UPDATE
  Document how to use sa-update.service

OBS-URL: https://build.opensuse.org/request/show/917789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=151
2021-09-09 18:53:54 +00:00
72045f82bc Accepting request 884851 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/884851
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=85
2021-04-15 14:57:08 +00:00
ea6b4b7687 Accepting request 884847 from home:adkorte
- update spamassassin to 3.4.6
  * Fixed URIDNSBL not triggering meta rules
  * Fix false positive in T_KAM_HTML_FONT_INVALID on CSS color !important

OBS-URL: https://build.opensuse.org/request/show/884847
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=149
2021-04-13 07:11:26 +00:00
Richard Brown
d7a57ffd1b Accepting request 882829 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/882829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=84
2021-04-06 15:29:39 +00:00
64001daf55 Accepting request 882827 from home:AndreasStieger:branches:devel:languages:perl
update some past bugzilla references / CVEs for tracking

OBS-URL: https://build.opensuse.org/request/show/882827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=147
2021-04-03 17:26:28 +00:00
8a26f8561a Accepting request 881204 from home:adkorte
- update spamassassin to 3.4.5
  * In this release, there are bug fixes for one CVE:
    CVE-2020-1946 for Malicious rule configuration (.cf) files can
      be configured to run system commands
  * Improvements to OLEVBMacro and AskDNS plugins
  * Received and EnvelopeFrom headers matching improvements
  * userpref SQL schema fixes
  * rbl and hashbl evaluation improvements
  * fix for non working TxRep tag names
  * man page fixes
- Update download links

OBS-URL: https://build.opensuse.org/request/show/881204
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=146
2021-03-24 20:06:24 +00:00
c7896a0527 Accepting request 871446 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/871446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=83
2021-02-17 17:09:44 +00:00
a8a7469a34 Accepting request 871434 from home:pmonrealgonzalez:branches:devel:languages:perl
- Relax the crypto policies for the test-suite. This will allow the
  tests that use certificates with small key lengths to pass.

OBS-URL: https://build.opensuse.org/request/show/871434
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=144
2021-02-12 13:57:49 +00:00
0d5b040e4b Accepting request 858757 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/858757
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=82
2020-12-29 14:48:06 +00:00
b3203ca53c Accepting request 858756 from home:adkorte
- Require perl(Mail::SpamAssassin) instead of perl-spamassassin
- Don't use BerkeleyDB (not even for unit test)
- Don't use is_opensuse conditional

OBS-URL: https://build.opensuse.org/request/show/858756
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=142
2020-12-26 13:56:27 +00:00
aaf443eef7 Accepting request 857145 from home:adkorte
- Compile rules in %post if Perl and/or spamassassin version changed
  and SPAM_SA_COMPILE=yes
- Enable test (add basic-lint-without-sandbox.patch)
- Ignore known warnings (add spamassassin-rpmlintrc)

OBS-URL: https://build.opensuse.org/request/show/857145
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=141
2020-12-20 13:58:15 +00:00
ac652cefec Accepting request 857130 from home:kukuk:container
- Move spamc into an own sub-package to avoid the full spamassassin
  installation on every client if there is a spamd server

OBS-URL: https://build.opensuse.org/request/show/857130
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=140
2020-12-20 11:14:08 +00:00
258329bb53 Accepting request 768649 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/768649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=81
2020-02-03 10:26:41 +00:00
Lars Vogdt
665a3ff3b4 Accepting request 768441 from home:adkorte
- update spamassassin to 3.4.4
  * In this release, there are bug fixes for two CVEs:
    CVE-2020-1931 for Nefarious rule configuration (.cf) files can
      be configured to run system commands with warnings.
    CVE-2020-1930 for Nefarious rule configuration (.cf) files can
      be configured to run system commands with sa-compile.
  * Improvements to OLEVBMacro
  * Fix for CRLF handling with SpamAssMilter & DKIM
  * Small fix for a regexp to provide Perl 5.8.x compatability again
  * Increased fns_extrachars default value to 50
  * Fixed nosubject and maxhits tflags when sa-compile is used
  * Limited the Bayes parsed token count
  * Improvements to whitespace trimming

OBS-URL: https://build.opensuse.org/request/show/768441
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=138
2020-01-30 11:31:46 +00:00
c5fc50a0dc Accepting request 757559 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/757559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=80
2019-12-18 13:44:32 +00:00
8b0e28daed Accepting request 757092 from home:adkorte
- remove old (compiled) rules in /var/lib/spamassassin directory
  after package upgrade and remove entirely upon package removal
- add BuildRequires for perl(Archive::Zip) and perl(IO::String)

OBS-URL: https://build.opensuse.org/request/show/757092
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=136
2019-12-17 14:07:29 +00:00
c3f3ffeb02 Accepting request 756055 from home:adkorte
- update spamassassin to 3.4.3
  * There is one new plugin (disabled by default)
    OLEVBMacro - Detects both OLE macros and VB code inside Office
      documents
  * Two CVE security bug fixes are included in this release
    CVE-2019-12420 for Multipart Denial of Service Vulnerability
    CVE-2018-11805 for nefarious CF files can be configured to
      run system commands without any output or errors
  * Safer and faster scanning of large emails using
      body_part_scan_size and rawbody_part_scan_size settings.
  * New tflag "nosubject" for 'body' rules, to stop matching the
      Subject header which is part of the body text.
  * Security updates include deprecation of the unsafe sa-update
    '--allowplugins' option, which now prints a warning that
    '--reallyallowplugins' is required to use it.

OBS-URL: https://build.opensuse.org/request/show/756055
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=135
2019-12-13 08:47:40 +00:00
4f36347fe2 Accepting request 755484 from home:dstoecker:branches:devel:languages:perl
Spam size is growing. Tsss.

OBS-URL: https://build.opensuse.org/request/show/755484
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=134
2019-12-13 08:47:17 +00:00
caf9ffe216 Accepting request 747349 from devel:languages:perl
- Change architecture of perl modules to 'noarch'
- Fix extraction command for default rules (proper fix for
  boo#911355, rather than a workaround)
- Don't unconditionally run sa-update on spamd and spampd service
  start as this doesn't honor the settings in /etc/sysconfig/spamd
- After running sa-update, only restart services if they were
  running before
- Fix name in logging timed-sa-update (suse.cron-sa-update
  doesn't exist anymore) (forwarded request 747252 from adkorte)

OBS-URL: https://build.opensuse.org/request/show/747349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=79
2019-11-13 12:13:56 +00:00
2efbdde36f Accepting request 747252 from home:adkorte
- Change architecture of perl modules to 'noarch'
- Fix extraction command for default rules (proper fix for
  boo#911355, rather than a workaround)
- Don't unconditionally run sa-update on spamd and spampd service
  start as this doesn't honor the settings in /etc/sysconfig/spamd
- After running sa-update, only restart services if they were
  running before
- Fix name in logging timed-sa-update (suse.cron-sa-update
  doesn't exist anymore)

OBS-URL: https://build.opensuse.org/request/show/747252
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=132
2019-11-11 13:14:41 +00:00
63b9b9164f Accepting request 746497 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/746497
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=78
2019-11-10 21:15:19 +00:00
c9139d62af Accepting request 745100 from home:adkorte
Update keyring. Keys are now available in a single download from upstream (see https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7765)

OBS-URL: https://build.opensuse.org/request/show/745100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=130
2019-11-08 07:58:48 +00:00
dda8fd833c Accepting request 709326 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/709326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=77
2019-06-26 14:00:18 +00:00
Stephan Kulow
0534705640 Accepting request 709150 from home:dimstar:Factory
- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to
  shortcut the build queues by allowing usage of systemd-mini

OBS-URL: https://build.opensuse.org/request/show/709150
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=128
2019-06-12 06:18:12 +00:00
a61118d829 Accepting request 666474 from devel:languages:perl
- Reduce boilerplate generated by %service_*. (forwarded request 666464 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/666474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=76
2019-01-24 13:01:47 +00:00
acbcd2a4f9 Accepting request 666464 from home:jengelh:branches:devel:languages:perl
- Reduce boilerplate generated by %service_*.

OBS-URL: https://build.opensuse.org/request/show/666464
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=126
2019-01-16 13:32:55 +00:00
3e67db118e Fix license.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=125
2019-01-16 09:56:50 +00:00
01468a027f - bsc#1115411 spamassassin: migrate from cron to systemd timers
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=124
2019-01-16 09:51:35 +00:00
3ba0568dbc Accepting request 637098 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/637098
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spamassassin?expand=0&rev=75
2018-10-01 06:14:16 +00:00
676f43c312 Accepting request 636660 from home:adkorte:branches:devel:languages:perl
- update spamassassin to 3.4.2
  * There are four new plugins (disabled by default)
    HashBL - interface to The Email Blocklist (EBL)
    ResourceLimits - assure your spamd child processes do not exceed
      specified CPU or memory limit
    FromNameSpoof - detection of the From:name field being used to
      mislead
    Phishing - finds uris used in phishing campaigns detected by
      OpenPhish (https://openphish.com) or PhishTank
      (https://phishtank.com) feeds
  * For security reasons SSLv3 support has been removed from spamc(1).
  * Four CVE security bug fixes are included in this release for
    PDFInfo.pm and the SA core: CVE-2017-15705, CVE-2016-1238,
    CVE-2018-11780 & CVE-2018-11781.
  * In sa-update script, optional support for SHA-256 / SHA-512 in
    addition to or instead of SHA1 has been added for better validation
    of rules.
  * GeoIP2 support has been added to RelayCountry and URILocalBL plugins
    due to GeoIP legacy API deprecations.
  * several new or enhanced configuration options
- update spampd to 2.51
  * Replace IO::Socket::INET with IO::Socket::IP for IPv6 support
  * Unix ports (ability to listen on UNIX sockets)
  * Add X-Envelope-* headers before Received
  * Add /usr/local/bin and /usr/local/sbin to PATH
  * Add --setsid option to start server with setsid if running in
    background
- Removed patches (are now in upstream):
  * 0001-bug-7361-Allow-building-against-OpenSSL-1.1.0.patch
  * 0001-Fix-bug-7367-Don-t-assume-cwd-.-is-in-INC-it-may-be-.patch
  * DNS-resolver-recursion-desired-not-set.patch
  * spamassassin-dont_use_SSLv3_methods.patch
  * spampd-2.42_git_20170226.patch
  * Unescaped_left_brace_in_regex_is_deprecated.patch

OBS-URL: https://build.opensuse.org/request/show/636660
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=122
2018-09-21 19:21:50 +00:00
50f736e0cf OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=121 2018-09-19 11:59:57 +00:00
dccd1c2aa0 Accepting request 636231 from home:adkorte:branches:devel:languages:perl
- Revert incompatibility-with-NET-DNS.patch (this patch attempts to
  fix a problem that was already solved by bsc#1059210)

OBS-URL: https://build.opensuse.org/request/show/636231
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=120
2018-09-18 09:11:10 +00:00
e8c44a403a - bsc#1107765 - spamassassin: incompatibility with Net::DNS >= 1.01
- Add upstream patch:
  incompatibility-with-NET-DNS.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=119
2018-09-13 14:10:30 +00:00
c8e1dd98d3 Fix the patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=118
2018-09-09 10:21:40 +00:00
3c34f586ec This patch also fixes the bug PerMsgStatus Warning
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7196

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=117
2018-09-09 10:05:30 +00:00
764ea8317a - bsc#1069831 Running sa-update from spamassassin gives warning
about deprecated regex
  o remove deprecated-regex.patch and apply upstream patch:
    Unescaped_left_brace_in_regex_is_deprecated.diff

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/spamassassin?expand=0&rev=116
2018-09-09 09:54:34 +00:00
34 changed files with 988 additions and 914 deletions

View File

@@ -1,27 +0,0 @@
From 353ba0d96670e80fca1b78369d1701e1cad2bfaf Mon Sep 17 00:00:00 2001
From: John Hardin <jhardin@apache.org>
Date: Mon, 13 Feb 2017 02:16:44 +0000
Subject: [PATCH 1/1] Fix bug#7367: Don't assume cwd (".") is in @INC, it may
be removed for security reasons - see CVE-2016-1238
git-svn-id: https://svn.apache.org/repos/asf/spamassassin/branches/3.4@1782717 13f79535-47bb-0310-9956-ffa450edef68
---
spamc/configure.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spamc/configure.pl b/spamc/configure.pl
index 0f10f3010..c6f67f208 100755
--- a/spamc/configure.pl
+++ b/spamc/configure.pl
@@ -66,7 +66,7 @@ print join(' ', $Config{'perlpath'}, "version.h.pl") . "\n";
# Do the same thing as for the preprocessor below.
package version_h;
my $Z = $0;
- local $0 = "version.h.pl";
+ local $0 = "./version.h.pl";
local @ARGV = ();
# Got to check for defined because the script returns shell error level!
unless (defined do $0) {
--
2.13.5

View File

@@ -1,445 +0,0 @@
From 83d31e4555d63a87cb00a732711f80562b455ad0 Mon Sep 17 00:00:00 2001
From: Karsten Braeckelmann <kb@apache.org>
Date: Tue, 29 Aug 2017 10:45:10 +0000
Subject: [PATCH] bug 7361: Allow building against OpenSSL 1.1.0
git-svn-id: https://svn.apache.org/repos/asf/spamassassin/branches/3.4@1806555 13f79535-47bb-0310-9956-ffa450edef68
---
spamc/configure | 129 +++++++++++++++++++++++++++++++++--------------------
spamc/configure.in | 4 +-
2 files changed, 82 insertions(+), 51 deletions(-)
diff --git a/spamc/configure b/spamc/configure
index 48d29fa2d..d8e5dcf8a 100755
--- a/spamc/configure
+++ b/spamc/configure
@@ -1874,7 +1874,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -1932,7 +1933,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2048,7 +2050,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2102,7 +2105,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2147,7 +2151,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2191,7 +2196,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2523,7 +2529,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2693,7 +2700,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2764,7 +2772,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -2917,7 +2926,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3069,7 +3079,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3260,7 +3271,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3323,7 +3335,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3388,7 +3401,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3491,7 +3505,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3557,7 +3572,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3628,7 +3644,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3666,9 +3683,9 @@ fi
SSLLIBS=""
SSLCFLAGS=""
if test yes = "$sa_ssl_enabled"; then
- echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
-echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
-if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
+ echo "$as_me:$LINENO: checking for CRYPTO_malloc in -lcrypto" >&5
+echo $ECHO_N "checking for CRYPTO_malloc in -lcrypto... $ECHO_C" >&6
+if test "${ac_cv_lib_crypto_CRYPTO_malloc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
@@ -3686,11 +3703,11 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char CRYPTO_lock ();
+char CRYPTO_malloc ();
int
main ()
{
-CRYPTO_lock ();
+CRYPTO_malloc ();
;
return 0;
}
@@ -3704,7 +3721,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3716,20 +3734,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_lib_crypto_CRYPTO_lock=yes
+ ac_cv_lib_crypto_CRYPTO_malloc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_lib_crypto_CRYPTO_lock=no
+ac_cv_lib_crypto_CRYPTO_malloc=no
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
-echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
-if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
+echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_malloc" >&5
+echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_malloc" >&6
+if test $ac_cv_lib_crypto_CRYPTO_malloc = yes; then
SSLLIBS="-lcrypto $SSLLIBS"
fi
@@ -3771,7 +3789,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3804,7 +3823,7 @@ fi
# before defining SPAMC_SSL check that all its requirements are
# actually available
if test yes = "$ac_cv_header_openssl_crypto_h" && \
- test yes = "$ac_cv_lib_crypto_CRYPTO_lock" && \
+ test yes = "$ac_cv_lib_crypto_CRYPTO_malloc" && \
test yes = "$ac_cv_lib_ssl_SSL_CTX_free"; then
SSLCFLAGS="-DSPAMC_SSL"
else
@@ -3854,7 +3873,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -3927,7 +3947,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4000,7 +4021,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4073,7 +4095,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4182,7 +4205,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4246,7 +4270,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4311,7 +4336,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4368,7 +4394,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4435,7 +4462,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4500,7 +4528,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4564,7 +4593,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4628,7 +4658,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -4692,7 +4723,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
@@ -5527,6 +5559,11 @@ esac
+ if test x"$ac_file" != x-; then
+ { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+ rm -f "$ac_file"
+ fi
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
@@ -5565,12 +5602,6 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
fi;;
esac
done` || { (exit 1); exit 1; }
-
- if test x"$ac_file" != x-; then
- { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
- rm -f "$ac_file"
- fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
sed "$ac_vpsub
diff --git a/spamc/configure.in b/spamc/configure.in
index 246c4fa9a..42cc99841 100644
--- a/spamc/configure.in
+++ b/spamc/configure.in
@@ -64,13 +64,13 @@ AC_CHECK_LIB(socket, socket)
SSLLIBS=""
SSLCFLAGS=""
if test yes = "$sa_ssl_enabled"; then
- AC_CHECK_LIB(crypto, CRYPTO_lock,[SSLLIBS="-lcrypto $SSLLIBS"])
+ AC_CHECK_LIB(crypto, CRYPTO_malloc,[SSLLIBS="-lcrypto $SSLLIBS"])
AC_CHECK_LIB(ssl, SSL_CTX_free,[SSLLIBS="-lssl $SSLLIBS"],,-lcrypto)
# before defining SPAMC_SSL check that all its requirements are
# actually available
if test yes = "$ac_cv_header_openssl_crypto_h" && \
- test yes = "$ac_cv_lib_crypto_CRYPTO_lock" && \
+ test yes = "$ac_cv_lib_crypto_CRYPTO_malloc" && \
test yes = "$ac_cv_lib_ssl_SSL_CTX_free"; then
SSLCFLAGS="-DSPAMC_SSL"
else
--
2.13.5

View File

@@ -1,10 +0,0 @@
--- Mail-SpamAssassin-3.4.1/lib/Mail/SpamAssassin/DnsResolver.pm.orig 2018-01-18 09:33:58.566828560 +0100
+++ Mail-SpamAssassin-3.4.1/lib/Mail/SpamAssassin/DnsResolver.pm 2018-01-18 09:32:47.765978605 +0100
@@ -575,6 +575,7 @@
{ $1 eq '\\' ? "\\$1" : sprintf("\\%03d",ord($1)) }xgse;
$packet = Net::DNS::Packet->new($domain, $type, $class);
+ $packet->header->rd(1);
# a bit noisy, so commented by default...
#dbg("dns: new DNS packet time=%.3f domain=%s type=%s id=%s",

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0c1c9808f0684b389594eb8b2ccbace6486546593493f9308c9554563d14651
size 2710985

BIN
Mail-SpamAssassin-4.0.2.tar.bz2 LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE2Ambx54X1+Sbwh4x/eUvQPfTmBQFAmivBcwACgkQ/eUvQPfT
mBRjtQ//Q5J04g8hzaNc/JeUdQRI85eYsgl5cT2qNhsgoAhGHu3l378Z+Qx7jmve
ZelOB4g/1QCpTqRfDxlCdQbux07DQcr1lniP2boYwp3IeqNtBplvXNNIatpcLnWJ
dvmn5FIb8ym1og+6o+emsenEUWHbdHY68YL62+7hjv9ibELh8RDpNjF2ojr0Gmg3
tOEtI5lkySHBgcHUqUil48wagD6W1CfMOZmTLMG95QQZhUU3lVQIm+2Z6tAYF+Ci
GPEwT6+gPoHJWbK3X7qLtyfh0AZ/n4GLbKOEAwg/Dku4USqtNysftpeVncaVYaAc
2RIg/lFxpclzAIzQEDq0yPRo553VGR0XBC3oLVajG4bAbvy2vEfDcUQ2lyETquI2
yVOziIX3NoxeCxd2aEii6+mjSc9pMBRsCcxZeIvt+9/8ecRfAgtry+GYJR/lna9q
A5ChtDrlnSMu76CSCAM1qZ65gwQaAgBCS7UWR5gANoHSZIYzL06Su1H72NTG3C80
ekO4a5gkBM6MDngE02Q+17tJNbEjfifqeuQHZnbzkcUOAOpzoziuUoqpdTyIQsY6
A0p8yRRE3gl9bm/LBpMJrLLmmW0lPrQZ6lqgHnZ4HvNW0skJbsI8cHLU3SICJa59
3AUzinzmVPR7z/exdQCH1F0H0fYSOnOFB4de1On1J98NYNWxH30=
=Z20K
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:382f7ee160a96a15aae559f53df92c36f2e17647b19c5954efede86149f8d12b
size 270622

Binary file not shown.

View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEDCsdcXW4UsZLPNxxbFU5eCT0NM4FAmiuc14ACgkQbFU5eCT0
NM5uXRAAnO2yAIgKDJpMiiRPrbd8nnO/J2XKf8wua6OUDCf5M6vfqzWdJnP+6PCv
cHElyWrxRUBOnOA6b4F/amzlwTK+CmMJK37kJFEqwA72xlJWXWaGWSnhNTloIHlr
x3x7iDPk0KkcmEZ3WWCEIoIsaGQPUDxJlxmuDgJTKcMEpHfnWTZGsUruvzbX1I5u
YEQevlCK2tPjldFErwUGjZ5cyyBdQ7FJYSx0xS9G2AzQXRElX3IyEcLZvoX6mJzH
rQOyMcLxdASkDPYGWT2S09Qk4F2NNKJMU8zh3QQiD2Zdq3uxLBpJ9G+fA0n+gVpv
igqcwGePFlY4oNPRBw66HiZlloZ7HZnBi8k1FnubwxwouhdPkc64rwjn2xqClqft
SY9epUDQMe0hnJCNmPYlsk2/xToYK5JryzRaTZ6RlY26R3+jgtO8sBkLIhhIZc4F
x7FncfqRY3M1x8XX2eDMYT6lAPKdQyR1cvsajC/ilM0chR6tWeywDAbw/ygi6K05
Cbtl5ao2aVTdyI+AMqUFPfiAndOfo0GrreVQZ5x21+2ClF5qmYJCWNjf0vTc2utV
vq5T/vXvFvwShD1RRzNesTuMRLv4iG9nsd8naj1+dUejyy6Sv/VUEoyMQAmv6q1X
Q2SqAqTOh6rT1sB0PzczbV8YhEBiJhkXe/ooe/zi4CXmumHwS+8=
=Mbw9
-----END PGP SIGNATURE-----

10
README.SUSE Normal file
View File

@@ -0,0 +1,10 @@
There is a sa-update.timer which can start daily the sa-update.service
You can enable this timer by:
systemctl enable sa-update.timer
systemctl start sa-update.timer
In /etc/sysconfig/spamd You can enable or disable some functionality of sa-update.service:
* SPAM_SA_COMPILE
* SPAM_SPAMD_RESTART
* SPAM_AMAVISD_RESTART

View File

@@ -0,0 +1,13 @@
Index: Mail-SpamAssassin-4.0.0/t/basic_lint_without_sandbox.t
===================================================================
--- Mail-SpamAssassin-4.0.0.orig/t/basic_lint_without_sandbox.t
+++ Mail-SpamAssassin-4.0.0/t/basic_lint_without_sandbox.t
@@ -23,7 +23,7 @@ my $sandboxfile = "$localrules/70_sandbo
# so we can use that to tell if this is the case
SKIP: {
skip( "Not on a sandbox", 2 ) unless -f $scoresfile;
- ok -f $sandboxfile;
+ skip( "Not on a sandbox", 2 ) unless -f $sandboxfile;
unlink $sandboxfile;
ok !-f $sandboxfile;
}

View File

@@ -1,10 +1,12 @@
--- spamd/spamd.raw.orig 2010-06-24 11:28:10.047109188 +0200
+++ spamd/spamd.raw 2010-06-24 11:28:57.942234270 +0200
@@ -174,6 +174,7 @@
Index: spamd/spamd.raw
===================================================================
--- spamd/spamd.raw.orig
+++ spamd/spamd.raw
@@ -339,6 +339,7 @@ sub print_usage_and_exit {
# defaults
my %opt = (
+ 'syslog-socket' => 'unix',
'user-config' => 1,
'ident-timeout' => 5.0,
# scaling settings; some of these aren't actually settable via cmdline
'server-scale-period' => 2, # how often to scale the # of kids, secs

View File

@@ -1,24 +0,0 @@
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm 2017/04/11 18:34:11 1791009
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm 2017/04/11 18:37:20 1791010
@@ -896,16 +896,16 @@
$str .= shift @{$ary};
}
undef $ary;
- chomp ($str); $str .= " [...]\n";
# in case the last line was huge, trim it back to around 200 chars
local $1;
- $str =~ s/^(.{,200}).*$/$1/gs;
+ $str =~ s/^(.{200}).+$/$1 [...]/gm;
+ chomp ($str); $str .= "\n";
# now, some tidy-ups that make things look a bit prettier
- $str =~ s/-----Original Message-----.*$//gs;
+ $str =~ s/-----Original Message-----.*$//gm;
$str =~ s/This is a multi-part message in MIME format\.//gs;
- $str =~ s/[-_\*\.]{10,}//gs;
+ $str =~ s/[-_*.]{10,}//gs;
$str =~ s/\s+/ /gs;
# add "Content preview:" ourselves, so that the text aligns

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d51fe8661bf407433db6c0fa12e3c6c66a1cd626751f51b170990089dc966a8
size 7871

View File

@@ -1,56 +0,0 @@
diff -ur iXhash2-2.05.orig/iXhash2.cf iXhash2-2.05/iXhash2.cf
--- iXhash2-2.05.orig/iXhash2.cf 2012-07-08 13:29:31.000000000 +0200
+++ iXhash2-2.05/iXhash2.cf 2012-09-26 13:41:11.874466944 +0200
@@ -1,20 +1,40 @@
# Note: loadplugin should really go into local.pre or so
-loadplugin Mail::SpamAssassin::Plugin::iXhash2 iXhash2.pm
+loadplugin Mail::SpamAssassin::Plugin::iXhash2
ifplugin Mail::SpamAssassin::Plugin::iXhash2
-ixhashdnsbl GENERIC_IXHASH generic.ixhash.net.
-body GENERIC_IXHASH eval:check_ixhash('GENERIC_IXHASH')
-tflags GENERIC_IXHASH net
-
-ixhashdnsbl NIXSPAM_IXHASH ix.dnsbl.manitu.net.
-body NIXSPAM_IXHASH eval:check_ixhash('NIXSPAM_IXHASH')
-tflags NIXSPAM_IXHASH net
-
-ixhashdnsbl SEM_IXHASH ixhash.spameatingmonkey.net.
-body SEM_IXHASH eval:check_ixhash('SEM_IXHASH')
-tflags SEM_IXHASH net
+ixhashdnsbl __GENERIC_IXHASH generic.ixhash.net.
+body __GENERIC_IXHASH eval:check_ixhash('GENERIC_IXHASH')
+tflags __GENERIC_IXHASH net
+
+ixhashdnsbl __NIXSPAM_IXHASH ix.dnsbl.manitu.net.
+body __NIXSPAM_IXHASH eval:check_ixhash('NIXSPAM_IXHASH')
+tflags __NIXSPAM_IXHASH net
+
+ixhashdnsbl __SEM_IXHASH ixhash.spameatingmonkey.net.
+body __SEM_IXHASH eval:check_ixhash('SEM_IXHASH')
+tflags __SEM_IXHASH net
+
+ixhashdnsbl __HOSTEUROPE_IXHASH hosteurope.ixhash.net.
+body __HOSTEUROPE_IXHASH eval:check_ixhash('HOSTEUROPE_IXHASH')
+tflags __HOSTEUROPE_IXHASH net
+
+ixhashdnsbl __JUNKMAIL_IXHASH ixhash.junkemailfilter.com.
+body __JUNKMAIL_IXHASH eval:check_ixhash('JUNKMAIL_IXHASH')
+tflags __JUNKMAIL_IXHASH net
+
+meta IXHASH_X1 (__GENERIC_IXHASH + __NIXSPAM_IXHASH + __SEM_IXHASH + __HOSTEUROPE_IXHASH + __JUNKMAIL_IXHASH) == 1
+describe IXHASH_X1 iXhash listed on one server
+score IXHASH_X1 1.5
+
+meta IXHASH_X2 (__GENERIC_IXHASH + __NIXSPAM_IXHASH + __SEM_IXHASH + __HOSTEUROPE_IXHASH + __JUNKMAIL_IXHASH) == 2
+describe IXHASH_X2 iXhash listed on two servers
+score IXHASH_X2 2.5
+
+meta IXHASH_X3 (__GENERIC_IXHASH + __NIXSPAM_IXHASH + __SEM_IXHASH + __HOSTEUROPE_IXHASH + __JUNKMAIL_IXHASH) > 2
+describe IXHASH_X3 iXhash listed on more than two servers
+score IXHASH_X3 3.5
endif

View File

@@ -1,6 +1,8 @@
--- lib/Mail/SpamAssassin/BayesStore/PgSQL.pm 2010-01-21 13:14:34.000000000 +0100
+++ lib/Mail/SpamAssassin/BayesStore/PgSQL.pm 2010-03-17 08:44:19.000000000 +0100
@@ -941,7 +941,7 @@
Index: lib/Mail/SpamAssassin/BayesStore/PgSQL.pm
===================================================================
--- lib/Mail/SpamAssassin/BayesStore/PgSQL.pm.orig
+++ lib/Mail/SpamAssassin/BayesStore/PgSQL.pm
@@ -987,7 +987,7 @@ sub _put_token {
}
my $escaped_token = _quote_bytea($token);
@@ -9,7 +11,7 @@
unless (defined($sth)) {
dbg("bayes: _put_token: SQL error: ".$self->{_dbh}->errstr());
@@ -1004,7 +1004,7 @@
@@ -1050,7 +1050,7 @@ sub _put_tokens {
my $tokenarray = join(",", map { '"' . _quote_bytea($_) . '"' } sort keys %{$tokens});

View File

@@ -1,20 +0,0 @@
--- lib/Mail/SpamAssassin/Conf/SQL.pm 2006-09-29 15:06:39.000000000 +0200
+++ lib/Mail/SpamAssassin/Conf/SQL.pm 2007-02-09 16:48:42.000000000 +0100
@@ -139,9 +139,14 @@
$sql =~ s/_DOMAIN_/$quoted_domain/g;
}
else {
- $sql = "select $f_preference, $f_value from $f_table where ".
- "$f_username = ".$dbh->quote($username).
- " or $f_username = '\@GLOBAL' order by $f_username asc";
+ $sql = "select $f_preference, $f_value, ascii(username) as user_asci from $f_table where ".
+ "$f_username = ".$dbh->quote($username).
+ " or $f_username = '\@GLOBAL' order by user_asci asc";
+ # changed by varkoly@novell.com on 09.02.2007 suggested by
+ # Charles Camello <charles@integrasul.inf.br>
+ #$sql = "select $f_preference, $f_value from $f_table where ".
+ #"$f_username = ".$dbh->quote($username).
+ #" or $f_username = '\@GLOBAL' order by $f_username asc";
}
dbg("config: Conf::SQL: executing SQL: $sql");
my $sth = $dbh->prepare($sql);

View File

@@ -1,10 +1,10 @@
diff -ur Mail-SpamAssassin-3.4.0/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm Mail-SpamAssassin-3.4.0_fix/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm
--- Mail-SpamAssassin-3.4.0/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2014-02-07 09:36:27.000000000 +0100
+++ Mail-SpamAssassin-3.4.0_fix/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2014-02-13 17:24:09.259369721 +0100
@@ -416,6 +416,8 @@
while (my($uri, $info) = each %{$uris}) {
# we want to skip mailto: uris
next if ($uri =~ /^mailto:/i);
diff -ur Mail-SpamAssassin-4.0.1/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm Mail-SpamAssassin-4.0.1_fix/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm
--- Mail-SpamAssassin-4.0.1/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2024-03-26 05:52:09.000000000 +0100
+++ Mail-SpamAssassin-4.0.1_fix/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2024-04-09 15:42:31.054588924 +0200
@@ -430,6 +430,8 @@
if ($conf->{uridnsbl_skip_mailto}) {
next if ($uri =~ /^mailto:/i);
}
+ # we want to skip so-files, they are not url's
+ next if ($uri =~ /\.so$/);

7
sa-update.service Normal file
View File

@@ -0,0 +1,7 @@
[Unit]
Description=Update spamassassin
ConditionACPower=true
[Service]
Type=oneshot
ExecStart=/usr/sbin/timed-sa-update

10
sa-update.timer Normal file
View File

@@ -0,0 +1,10 @@
[Unit]
Description=Daily update of spamassasin
[Timer]
OnCalendar=daily
AccuracySec=12h
Persistent=true
[Install]
WantedBy=timers.target

View File

@@ -1,28 +0,0 @@
Index: Mail-SpamAssassin-3.4.1/spamc/libspamc.c
===================================================================
--- Mail-SpamAssassin-3.4.1.orig/spamc/libspamc.c 2015-04-28 21:56:59.000000000 +0200
+++ Mail-SpamAssassin-3.4.1/spamc/libspamc.c 2017-08-30 16:05:14.426823560 +0200
@@ -1216,7 +1216,11 @@ int message_filter(struct transport *tp,
if (flags & SPAMC_TLSV1) {
meth = TLSv1_client_method();
} else {
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+ meth = TLS_client_method(); /* default */
+#else
meth = SSLv3_client_method(); /* default */
+#endif
}
SSL_load_error_strings();
ctx = SSL_CTX_new(meth);
@@ -1604,7 +1608,11 @@ int message_tell(struct transport *tp, c
if (flags & SPAMC_USE_SSL) {
#ifdef SPAMC_SSL
SSLeay_add_ssl_algorithms();
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+ meth = TLS_client_method();
+#else
meth = SSLv3_client_method();
+#endif
SSL_load_error_strings();
ctx = SSL_CTX_new(meth);
#else

2
spamassassin-rpmlintrc Normal file
View File

@@ -0,0 +1,2 @@
addFilter("systemd-service-without-service_.* sa-update.service")
addFilter("spamassassin.* no-binary")

View File

@@ -1,3 +1,394 @@
-------------------------------------------------------------------
Tue Sep 2 20:18:33 UTC 2025 - Arjen de Korte <suse+build@de-korte.org>
- update to patch release version 4.0.2
- Add subs to HeaderEval plugin to detect invalid address headers
- TxRep data when using a SQL backend might be wrong because of
a bug in SpamAssassin 4.0.1, TxRep score can be limited with new
txrep_min_score and txrep_max_score configuration options
or you can remove email entries from TxRep database.
- Redis replication is now supported, Redis connection parameters
are splitted between read_only and read_write. Old syntax is still supported.
- Internal Mail::SpamAssassin::GeoDB module now also supports
IP::Geolocation::MMDB Perl module.
- Improved detection of MIME headers
- Improved parsing of CSS color values
- Added "replace_rules" support to Mail::SpamAssassin::Plugin::HashBL
- CNAME dns records are resolved and domains added to "uri_detail_list"
- New Mail::SpamAssassin::Plugin::Redirectors plugin
This plugin looks for URLs redirected by a list of URL redirector
services.
- improved handling of IDN domains
- Update to spampd 2.62:
- Fixed that SpamPD shares the same socket to redist between children
- Fix option names in configuration parameter validation methods
- Do not set up logging if only showing debug info
-------------------------------------------------------------------
Mon Jan 20 13:29:51 UTC 2025 - Dirk Stoecker <opensuse@dstoecker.de>
- drop iXHash plugin (last provider stopped operation)
* remove iXhash2-4.00.tar.gz
* remove iXhash2-meta-rules.patch
-------------------------------------------------------------------
Wed Apr 10 08:25:53 UTC 2024 - Dirk Stoecker <opensuse@dstoecker.de>
- fix iXhash2-meta-rules.patch
-------------------------------------------------------------------
Tue Apr 9 13:31:41 UTC 2024 - Dirk Stoecker <opensuse@dstoecker.de>
- update to patch release version 4.0.1
- Incompatibilities with some versions of perl and some perl modules
that have been released since the release of SpamAssassin 4.0.0
- Problems using cpan to install SpamAssassin when certain required
or optional modules are not already installed
- Support for space characters in the path name of some executables
used by certain plugins
- Improved handling of URL shortener link redirects
- Improved TxRep locking management
- Added Mail::SpamAssassin::Plugin::AuthRes plugin to use
Authentication-Results header fields in other plugins
- Added a Pyzor Perl implementation
- Perl crash when certain uri_detail rules processed some messages
with UTF-8 characters
- Inconsistent handling of newlines in header rules
- Text or HTML content placed in octet-stream attachments by
spammers to bypass SpamAssassin scanning
- Implemented TCP fallback for truncated DNS UDP replies
- Refresh patch-URIDNSBL
- Drop undocumented patch-SQL_ASCII_SORT breaking sqlite
- Drop most of iXhash2-meta-rules.patch (additional services no longer exist)
-------------------------------------------------------------------
Mon Feb 26 13:33:28 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Tue Jan 2 21:58:50 UTC 2024 - Pedro Monreal <pmonreal@suse.com>
- Remove the dependency on perl(IO::Socket::INET6) as it has been
deprecated by upstream, is no longer suitable for use and its not
being maintained. A compatible replacement for this package is
perl(IO::Socket::IP) which is shipped by the perl-base package.
-------------------------------------------------------------------
Sat Dec 24 18:01:29 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
- Add BuildRequires Text::Diff that was accidentally removed from
original submission
- Update known warnings
% spamassassin-rpmlintrc
-------------------------------------------------------------------
Thu Dec 22 10:08:30 UTC 2022 - Paolo Stivanin <info@paolostivanin.com>
- Update to spamassissin 4.0.0:
* Notable internal changes:
- Meta rules no longer use priority values, they are evaluated
dynamically when the rules they depend on are finished
- DNS and other asynchronous lookups like DCC or Razor2 plugins
are now launched when priority -100 is reached. This allows
short circuiting at lower priority without sending unneeded
DNS queries
- New internal Mail::SpamAssassin::GeoDB module supporting
RelayCountry and URILocalBL plugins provides a unified
interface to Geographic IP modules. These include:
MaxMind::DB::Reader (GeoIP2)
Geo::IP
IP::Country::DB_File
IP::Country::Fast.
* New plugins:
- Mail::SpamAssassin::Plugin::ExtractText
- Mail::SpamAssassin::Plugin::DMARC
- Mail::SpamAssassin::Plugin::DecodeShortURLs
* HashCash module has been removed completely
* Full detailed changelog:
https://svn.apache.org/repos/asf/spamassassin/trunk/Changes
- Update to iXhash2 4.00:
* Minimum required version: SpamAssassin 4.0.0
- Update to spampd 2.61:
* Performance and diagnostic improvements, quicker startups, and
a lot of documentation updates.
* Add support for configuration files (examples included in /misc
folder and in POD).
* Add optional "scalable mode" using Net::Server::PreFork module
(16-year TODO!). More info in POD.
* Add --logfile option to control logging destination(s) (syslog,
stderr, and/or file/device).
* Add --logident, --logfacility options for syslog.
* Add multiple levels of help, including full "man" output with
optional HTML formatting.
* Add --show <thing> argument for printing default option values
and other debug.
* Fix SpamAssassin debug logging with versions 3.1+ (output
was going to stderr/wrong syslog/null).
* Fix for IPv6 addresses being used on --host and --relayhost
options (was not possible due to ":<port>" check).
* SIGHUP will now reload SpamAssassin and SpamPD configuration files
(and all module code), still with graceful child process shutdown.
* Use SpamAssassin::Logger module (with SA 3.1+) for all logging.
* Log to stderr by default if running non-daemonized
* Child processes are now renamed to "spampd child"
to distinguish them from the parent in task lists.
* Now requires Net::Server v0.89+ (though latest 2.009 is recommended).
* The --auto-whitelist option is no longer allowed with SpamAssassin v3+.
* Improve --debug option, adding ability to specify
SpamAssassin (v3.1+) debug areas (aka channels/facilities).
* All boolean options can take 0/1 argument and be negated
with "no-" prefix.
* The --children (-c) option is now more formally named
--max-servers (-mxs), but still accepted.
* IO::Socket::UNIX and ::IP are only required if actually
needed for --relaysocket / --relayhost options.
-------------------------------------------------------------------
Wed Jan 19 15:39:37 UTC 2022 - Johannes Segitz <jsegitz@suse.com>
- Drop ProtectHome from spamd.service and spampd.service. Unfortunately
spamassing writes there, so ProtectHome=read-only doesn't work.
Whitelisting a specific part has a too high chance of breaking for
this package (bsc#1193248)
-------------------------------------------------------------------
Tue Nov 23 08:23:11 UTC 2021 - Dirk Stoecker <opensuse@dstoecker.de>
- Set ProtectHome=false for spampd.service, as this breaks loading
and storing data files in /home/vscan.
-------------------------------------------------------------------
Wed Nov 17 13:56:17 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
- Added hardening to systemd service(s) (bsc#1181400). Modified:
* spamd.service
* spampd.service
-------------------------------------------------------------------
Thu Sep 9 17:03:07 UTC 2021 - Peter Varkoly <varkoly@suse.com>
- spamassassin: sa-update.timer does not work
(bsc#1175375)
Remove sence less SPAM_SA_UPDATE
Document how to use sa-update.service
-------------------------------------------------------------------
Tue Apr 13 06:17:23 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update spamassassin to 3.4.6
* Fixed URIDNSBL not triggering meta rules
* Fix false positive in T_KAM_HTML_FONT_INVALID on CSS color !important
-------------------------------------------------------------------
Wed Mar 24 17:58:15 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update spamassassin to 3.4.5
* In this release, there are bug fixes for one CVE:
CVE-2020-1946 for Malicious rule configuration (.cf) files can
be configured to run system commands (boo#1184221)
* Improvements to OLEVBMacro and AskDNS plugins
* Received and EnvelopeFrom headers matching improvements
* userpref SQL schema fixes
* rbl and hashbl evaluation improvements
* fix for non working TxRep tag names
* man page fixes
- Update download links
-------------------------------------------------------------------
Fri Feb 12 11:25:16 UTC 2021 - Pedro Monreal <pmonreal@suse.com>
- Relax the crypto policies for the test-suite. This will allow the
tests that use certificates with small key lengths to pass.
-------------------------------------------------------------------
Wed Dec 23 16:05:26 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
- Require perl(Mail::SpamAssassin) instead of perl-spamassassin
- Don't use BerkeleyDB (not even for unit test)
- Don't use is_opensuse conditional
-------------------------------------------------------------------
Sat Dec 19 16:16:05 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Move spamc into an own sub-package to avoid the full spamassassin
installation on every client if there is a spamd server
-------------------------------------------------------------------
Thu Dec 17 20:21:29 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
- Compile rules in %post if Perl and/or spamassassin version changed
and SPAM_SA_COMPILE=yes
- Enable test (add basic-lint-without-sandbox.patch)
- Ignore known warnings (add spamassassin-rpmlintrc)
-------------------------------------------------------------------
Wed Jan 29 19:26:21 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
- update spamassassin to 3.4.4
* In this release, there are bug fixes for two CVEs:
CVE-2020-1931 for Nefarious rule configuration (.cf) files can
be configured to run system commands with warnings.
(boo#1162200)
CVE-2020-1930 for Nefarious rule configuration (.cf) files can
be configured to run system commands with sa-compile.
(boo#1162197)
* Improvements to OLEVBMacro
* Fix for CRLF handling with SpamAssMilter & DKIM
* Small fix for a regexp to provide Perl 5.8.x compatability again
* Increased fns_extrachars default value to 50
* Fixed nosubject and maxhits tflags when sa-compile is used
* Limited the Bayes parsed token count
* Improvements to whitespace trimming
-------------------------------------------------------------------
Sat Dec 14 10:32:50 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
- remove old (compiled) rules in /var/lib/spamassassin directory
after package upgrade and remove entirely upon package removal
- add BuildRequires for perl(Archive::Zip) and perl(IO::String)
-------------------------------------------------------------------
Thu Dec 12 11:55:55 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
- update spamassassin to 3.4.3
* There is one new plugin (disabled by default)
OLEVBMacro - Detects both OLE macros and VB code inside Office
documents
* Two CVE security bug fixes are included in this release
CVE-2019-12420 for Multipart Denial of Service Vulnerability
(boo#1159133)
CVE-2018-11805 for nefarious CF files can be configured to
run system commands without any output or errors
(boo#1118987)
* Safer and faster scanning of large emails using
body_part_scan_size and rawbody_part_scan_size settings.
* New tflag "nosubject" for 'body' rules, to stop matching the
Subject header which is part of the body text.
* Security updates include deprecation of the unsafe sa-update
'--allowplugins' option, which now prints a warning that
'--reallyallowplugins' is required to use it.
-------------------------------------------------------------------
Tue Dec 10 09:17:05 UTC 2019 - Dirk Stoecker <opensuse@dstoecker.de>
- Increase maximum size for spampd to 7168
-------------------------------------------------------------------
Sat Nov 9 12:42:47 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
- Change architecture of perl modules to 'noarch'
-------------------------------------------------------------------
Fri Nov 8 10:40:45 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
- Fix extraction command for default rules (proper fix for
boo#911355, rather than a workaround)
- Don't unconditionally run sa-update on spamd and spampd service
start as this doesn't honor the settings in /etc/sysconfig/spamd
- After running sa-update, only restart services if they were
running before
- Fix name in logging timed-sa-update (suse.cron-sa-update
doesn't exist anymore)
----------------------------------------------------------
Sun Oct 27 12:36:31 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
- update spampd to 2.53
* Fix LMTP delivery with multiple recipients
* Fix Warning for "Use of uninitialized value in string"
update spampd to 2.52
* Override Net::Server's HUP handling, just restart children
* Add --version option to print information about SpamPD,
Net::Server, SpamAssassin, and Perl.
* Add warnings about using deprecated options.
* Documentation updates and code cosmetics.
- Update download links (add for spampd and iXhash2 sources)
- Add source verification (add spamassassin.keyring)
- Add %{perl_requires} for perl-Mail-SpamAssassin
- Fix "PIDFile= references a path below legacy directory /var/run/"
(change /var/run/ -> /run/)
- Don't package README.SuSE which documents an init script that
was never bundled boo#1068469
-------------------------------------------------------------------
Tue Jun 11 12:33:05 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to
shortcut the build queues by allowing usage of systemd-mini
-------------------------------------------------------------------
Wed Jan 16 11:50:16 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Reduce boilerplate generated by %service_*.
-------------------------------------------------------------------
Wed Jan 16 09:43:23 UTC 2019 - Peter Varkoly <varkoly@suse.com>
- bsc#1115411 spamassassin: migrate from cron to systemd timers
- Apply %license macro
-------------------------------------------------------------------
Tue Sep 18 20:29:34 UTC 2018 - Arjen de Korte <suse+build@de-korte.org>
- update spamassassin to 3.4.2
* There are four new plugins (disabled by default)
HashBL - interface to The Email Blocklist (EBL)
ResourceLimits - assure your spamd child processes do not exceed
specified CPU or memory limit
FromNameSpoof - detection of the From:name field being used to
mislead
Phishing - finds uris used in phishing campaigns detected by
OpenPhish (https://openphish.com) or PhishTank
(https://phishtank.com) feeds
* For security reasons SSLv3 support has been removed from spamc(1).
* Four CVE security bug fixes are included in this release for
PDFInfo.pm and the SA core: CVE-2017-15705, CVE-2016-1238,
CVE-2018-11780 & CVE-2018-11781.
* In sa-update script, optional support for SHA-256 / SHA-512 in
addition to or instead of SHA1 has been added for better validation
of rules.
* GeoIP2 support has been added to RelayCountry and URILocalBL plugins
due to GeoIP legacy API deprecations.
* several new or enhanced configuration options
- update spampd to 2.51
* Replace IO::Socket::INET with IO::Socket::IP for IPv6 support
* Unix ports (ability to listen on UNIX sockets)
* Add X-Envelope-* headers before Received
* Add /usr/local/bin and /usr/local/sbin to PATH
* Add --setsid option to start server with setsid if running in
background
- Removed patches (are now in upstream):
* 0001-bug-7361-Allow-building-against-OpenSSL-1.1.0.patch
* 0001-Fix-bug-7367-Don-t-assume-cwd-.-is-in-INC-it-may-be-.patch
* DNS-resolver-recursion-desired-not-set.patch
* spamassassin-dont_use_SSLv3_methods.patch
* spampd-2.42_git_20170226.patch
* Unescaped_left_brace_in_regex_is_deprecated.patch
-------------------------------------------------------------------
Mon Sep 17 19:11:13 UTC 2018 - Arjen de Korte <suse+build@de-korte.org>
- Revert incompatibility-with-NET-DNS.patch (this patch attempts to
fix a problem that was already solved by bsc#1059210)
-------------------------------------------------------------------
Thu Sep 13 14:05:04 UTC 2018 - varkoly@suse.com
- bsc#1107765 - spamassassin: incompatibility with Net::DNS >= 1.01
- Add upstream patch:
incompatibility-with-NET-DNS.patch
-------------------------------------------------------------------
Sun Sep 9 09:52:44 UTC 2018 - varkoly@suse.com
- bsc#1069831 Running sa-update from spamassassin gives warning
about deprecated regex
o remove deprecated-regex.patch and apply upstream patch:
Unescaped_left_brace_in_regex_is_deprecated.patch
This patch also fixes the bug PerMsgStatus Warning
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7196
-------------------------------------------------------------------
Mon Feb 19 17:19:18 UTC 2018 - varkoly@suse.com

229
spamassassin.keyring Normal file
View File

@@ -0,0 +1,229 @@
PREFACE: This file lives at https://spamassassin.apache.org/KEYS and
https://www.apache.org/dist/spamassassin/KEYS
This file contains the GPG keys which Apache SpamAssassin's release and
update distributions are signed with.
Please don't use these keys for email. They are only used for code signing.
Please realize that this file itself, or the public key servers may be
compromised. You are encouraged to validate the authenticity of this key in an
out-of-band manner. For information about our validation and signing policies,
please read http://httpd.apache.org/dev/verification.html .
The following key is used to sign releases after, and including SA 3.3.0:
pub 4096R/F7D39814 2009-12-02
Key fingerprint = D809 9BC7 9E17 D7E4 9BC2 1E31 FDE5 2F40 F7D3 9814
uid SpamAssassin Project Management Committee <private@spamassassin.apache.org>
uid SpamAssassin Signing Key (Code Signing Key, replacement for 1024D/265FA05B) <dev@spamassassin.apache.org>
sub 4096R/7B3265A5 2009-12-02
The PUBLIC KEY BLOCK Follows. [1]
NOTE: The following key was used to sign releases before that point, but
will NEVER be used to sign later releases:
pub 1024D/265FA05B 2003-06-09
Key fingerprint = 26C9 00A4 6DD4 0CD5 AD24 F6D7 DEE0 1987 265F A05B
uid SpamAssassin Signing Key <release@spamassassin.org>
sub 1024D/FC51569B 2003-08-21
The following key is used to sign rule updates:
pub 4096R/5244EC45 2005-12-20
Key fingerprint = 5E54 1DC9 59CB 8BAC 7C78 DFDC 4056 A61A 5244 EC45
uid updates.spamassassin.org Signing Key <release@spamassassin.org>
sub 4096R/24F434CE 2005-12-20
The PUBLIC KEY BLOCK Follows. [2]
[1]
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.13 (FreeBSD)
mQGiBD7k/bIRBADPcxP8CSNsr7zIH/UQPCJORDwmgUSDmnJmA+qDA6pYVHuaZ2lo
TZRjVX1CkeSIXmyxA3bdmokhz6UW/B/g/We8mUwdpC0jJSSKHNsP1tyNzjq0NtWq
N92WRmUe8eTF9MqfDk9FTEDl2WC2ma8vIeNqtjSbPy85yB2HkV2qfDYb3wCgvQEk
R8nD2C6YhBqHWuxE55F5hVkD+wSz6PA7f7C5cY9/icOjpzkG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zjy0Onv5cJh2tjdwksigMRMwz4c839zXORni/tnY
+IY22kNTKu84gB8rBuqUq8MQXNdS3bbROwwNUzpC0D1C1z1fBvyXDL1EwJdz70Wc
2m/Sw6tIid5g98+XMW+Ibt43Jk2XbK71JLhbVbePbAcHVh/UXEtnjhRfX7oyWlwS
a+lkKMiJd/6CQ6bvYsgklE7uEzTpRskpkkOcCk1O+8jfl+DsDwKrvVaNu8tpx45k
TtV4JDA6iEHKakD/zZdVTR79W2CFqBvRfRikc5INOl1OfMQ4ODmjkMl3yI9wrHwS
SQQxdq2XsS7xbU9HDFBEguQDu0rfzILZ9DuKIVHyr/CsRoJ5joj+JvKaUQC81ywQ
aB8EKy5bg4U6
=IbYW
-----END PGP PUBLIC KEY BLOCK-----

View File

@@ -1,7 +1,7 @@
#
# spec file for package spamassassin
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,71 +12,68 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
%bcond_without test
%define ix_version 2.05
%define spd_version 2.42
# http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm
%define spd_version 2.62
%define sa_version 4.0.2
%define sa_float %(echo %{sa_version} | awk -F. '{ printf "%d.%03d%03d", $1, $2, $3 }')
%define perl_float %(echo %{perl_version} | awk -F. '{ printf "%d.%03d", $1, $2 }')
%define rules_revision 1928015
%define IXHASH iXhash2-%{ix_version}
%define SPAMPD spampd-%{spd_version}
Name: spamassassin
Version: %{sa_version}
Release: 0
Summary: Extensible email filter which is used to identify spam
License: Apache-2.0
Group: Productivity/Networking/Email/Utilities
Version: 3.4.1
Release: 0
%define sa_version 3.4.1
%define rules_revision 1675274
Url: http://spamassassin.org/
Source: http://apache.mirrors.hoobly.com//spamassassin/source/Mail-SpamAssassin-%{version}.tar.bz2
Source1: http://apache.mirrors.hoobly.com//spamassassin/source/Mail-SpamAssassin-rules-%{version}.r%{rules_revision}.tgz
Source2: %{IXHASH}.tar.gz
Source3: %{SPAMPD}.tar.bz2
URL: https://spamassassin.apache.org/
Source0: https://downloads.apache.org/spamassassin/source/Mail-SpamAssassin-%{sa_version}.tar.bz2
Source1: https://downloads.apache.org/spamassassin/source/Mail-SpamAssassin-rules-%{sa_version}.r%{rules_revision}.tgz
Source3: https://github.com/mpaperno/spampd/archive/%{spd_version}.tar.gz#/%{SPAMPD}.tar.gz
Source10: local.cf
Source11: README.SUSE
Source12: sysconfig.spamd
Source14: sysconfig.spampd
Source15: suse.cron-sa-update
Source15: timed-sa-update
Source16: spamd.service
Source17: spampd.service
Source18: sa-update.service
Source19: sa-update.timer
Source100: https://downloads.apache.org/spamassassin/source/Mail-SpamAssassin-%{sa_version}.tar.bz2.asc
Source101: https://downloads.apache.org/spamassassin/source/Mail-SpamAssassin-rules-%{sa_version}.r%{rules_revision}.tgz.asc
# Keyring downloaded from https://www.apache.org/dist/spamassassin/KEYS
Source102: spamassassin.keyring
Source103: %{name}-rpmlintrc
Patch1: patch-PgSQL
Patch2: patch-URIDNSBL
Patch3: patch-SQL_ASCII_SORT
Patch6: bnc#582111.diff
Patch7: spampd-2.42_git_20170226.patch
Patch10: iXhash2-meta-rules.patch
# add OpenSSL 1.1 support
# PATCH-FIX-UPSTREAM https://svn.apache.org/viewvc?view=revision&revision=1806555
Patch11: 0001-bug-7361-Allow-building-against-OpenSSL-1.1.0.patch
# PATCH-FIX-SUSE don't use deprecated SSLv3_client_method
Patch12: spamassassin-dont_use_SSLv3_methods.patch
# PATCH-FIX-UPSTREAM https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7367
Patch13: 0001-Fix-bug-7367-Don-t-assume-cwd-.-is-in-INC-it-may-be-.patch
# PATCH-FIX-UPSTREAM https://bz.apache.org/SpamAssassin/attachment.cgi?id=5314
Patch14: DNS-resolver-recursion-desired-not-set.patch
# PATCH-FIX-UPSTREAM https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7404
Patch15: deprecated-regex.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
PreReq: %fillup_prereq
BuildRequires: dos2unix
BuildRequires: openssl-devel
Patch7: basic-lint-without-sandbox.patch
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
# optional, but want them for build (test)
BuildRequires: curl >= 7.2.14
BuildRequires: gpg
BuildRequires: netcfg
BuildRequires: re2c
BuildRequires: wget >= 1.8.2
#
Requires: perl-IO-Socket-INET6
Requires: perl-Mail-DKIM
Requires: perl-Mail-SpamAssassin = %version
Requires: re2c
Requires: spamassassin-spamc = %{sa_version}
Requires: (curl >= 7.2.14 or wget >= 1.8.2)
Requires: perl(Archive::Tar) >= 1.23
Requires: perl(Error)
Requires: perl(IO::Zlib) >= 1.04
Requires: perl(LWP)
Requires: perl(Mail::SpamAssassin) = %{sa_float}
Requires: perl(Net::Server::PreForkSimple)
BuildRequires: systemd
%{?systemd_requires}
Requires(post): %fillup_prereq
%{?systemd_ordering}
%description
spamassassin adds a header line that shows if the mail has been
@@ -85,127 +82,147 @@ mail within the scope of your own filtering rules in your MUA (Mail
User Agent, your mail program) or your LDA (Local Delivery Agent).
See the files in the documentation directory
/usr/share/doc/packages/spamassassin/ for more information on how to
%{_docdir}/spamassassin/ for more information on how to
use the filter.
%package spamc
Summary: Spammassassin Client
Group: Productivity/Networking/Email/Utilities
%description spamc
Spamc is the client to contact the spammassassin spamd daemon. It should
be used in place of "spamassassin" in scripts to process mail.
%package -n perl-Mail-SpamAssassin
Summary: Perl Modules For Using Spamassassin Within An Own Perl Script
Group: Development/Libraries/Perl
BuildRequires: perl
BuildRequires: perl-Error
BuildRequires: perl(Archive::Tar) >= 1.23
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(DB_File)
BuildRequires: perl(Digest::SHA1)
BuildRequires: perl(Errno)
BuildRequires: perl(File::Copy) >= 2.02
BuildRequires: perl(File::Spec) >= 0.8
BuildRequires: perl(Getopt::Long) >= 2.32
BuildRequires: perl(HTML::Parser) >= 3.43
BuildRequires: perl(IO::Zlib) >= 1.04
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Mail::DKIM) >= 0.37
BuildRequires: perl(Net::DNS) >= 0.34
BuildRequires: perl(NetAddr::IP) >= 4.000
BuildRequires: perl(Net::DNS) >= 0.69
BuildRequires: perl(Net::SMTP)
BuildRequires: perl(NetAddr::IP) >= 4.010
BuildRequires: perl(Pod::Usage) >= 1.10
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Time::Local)
# required for tests
BuildRequires: perl(Devel::Cycle)
#BuildRequires: perl(Perl::Critic::Policy::Perlsecret)
BuildRequires: perl(Perl::Critic::Policy::TestingAndDebugging::ProhibitNoStrict)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Diff)
# optional, but want them for build (test)
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(BSD::Resource)
BuildRequires: perl(DBD::SQLite)
BuildRequires: perl(DBI)
BuildRequires: perl(Encode::Detect)
BuildRequires: perl(IO::Socket::INET6)
BuildRequires: perl(IO::Socket::SSL)
BuildRequires: perl(IP::Country)
BuildRequires: perl(Mail::SPF)
BuildRequires: perl(Devel::Cycle)
BuildRequires: perl(Email::Address::XS)
BuildRequires: perl(Encode::Detect::Detector)
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(IO::Socket::IP)
BuildRequires: perl(IO::Socket::SSL) >= 1.76
BuildRequires: perl(IO::String)
BuildRequires: perl(IP::Country::Fast)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Mail::SPF) >= 2.001
BuildRequires: perl(Net::CIDR::Lite)
BuildRequires: perl(Net::Ident)
BuildRequires: perl(Net::LibIDN)
BuildRequires: perl(Net::Patricia) >= 1.16
BuildRequires: perl(Razor2::Client::Agent) >= 2.61
#
Requires: perl-libwww-perl
Requires: perl(Archive::Tar) >= 1.23
Requires: perl(Archive::Zip)
Requires: perl(Digest::SHA1)
Requires: perl(Errno)
Requires: perl(File::Copy) >= 2.02
Requires: perl(File::Spec) >= 0.8
Requires: perl(HTML::Parser) >= 3.43
Requires: perl(IO::Socket::IP)
Requires: perl(IO::Zlib) >= 1.04
Requires: perl(Mail::DKIM) >= 0.37
Requires: perl(Net::DNS) >= 0.34
Requires: perl(Mail::DKIM) >= 0.31
Requires: perl(Net::DNS) >= 0.69
Requires: perl(NetAddr::IP) >= 4.010
Requires: perl(Pod::Usage) >= 1.10
Requires: perl(Sys::Hostname)
Requires: perl(Time::HiRes)
Requires: perl(Time::Local)
# optional
Recommends: perl(Mail::SPF)
Recommends: perl(Net::Patricia)
Recommends: perl(Archive::Tar) >= 1.23
Recommends: perl(BSD::Resource)
Recommends: perl(Compress::Zlib)
Recommends: perl(DB_File)
Recommends: perl(Email::Address::XS)
Recommends: perl(Encode::Detect::Detector)
Recommends: perl(Getopt::Long) >= 2.32
Recommends: perl(HTTP::Date)
Recommends: perl(IO::Socket::IP)
Recommends: perl(IO::Socket::SSL) >= 1.76
Recommends: perl(IO::String)
Recommends: perl(IO::Zlib) >= 1.04
Recommends: perl(IP::Country::Fast)
Recommends: perl(LWP::UserAgent)
Recommends: perl(MIME::Base64)
Recommends: perl(Mail::DKIM) >= 0.37
Recommends: perl(Mail::SPF) >= 2.001
Recommends: perl(Net::CIDR::Lite)
Recommends: perl(Net::DNS) >= 0.58
Recommends: perl(Net::Ident)
Recommends: perl(Net::LibIDN)
Recommends: perl(Net::Patricia) >= 1.16
Recommends: perl(Net::SMTP)
Recommends: perl(Razor2::Client::Agent) >= 2.61
Recommends: perl(IO::Socket::INET6)
Recommends: perl(IO::Socket::SSL)
Recommends: perl(DBI)
Recommends: perl(Encode::Detect)
Recommends: cron
Provides: perl-spamassassin = %version
Obsoletes: perl-spamassassin < %version
Recommends: perl(Test::More)
Suggests: perl(DBD::mysql)
Suggests: perl(DBI)
Suggests: perl(Geo::IP)
Suggests: perl(GeoIP2::Database::Reader)
Provides: perl-spamassassin = %{sa_version}
Obsoletes: perl-spamassassin < %{sa_version}
BuildArch: noarch
%{perl_requires}
%description -n perl-Mail-SpamAssassin
This package contains the perl modules for the spamassassin, including
the filter rules. This package is required for the package
"spamassassin", the commandline tool.
%package -n perl-Mail-SpamAssassin-Plugin-iXhash2
Summary: The iXhash plugin for SpamAssassin
Group: Development/Libraries/Perl
Requires: perl-Mail-SpamAssassin = %version
Requires: perl(Digest::MD5)
Version: %{ix_version}
Release: 0
Provides: perl-Mail-SpamAssassin-Plugin-iXhash = %{ix_version}
Obsoletes: perl-Mail-SpamAssassin-Plugin-iXhash < 2
%{perl_requires}
%description -n perl-Mail-SpamAssassin-Plugin-iXhash2
This archive contains the iXhash2 plugin for the SpamAssassin spam filtering
software, along with an example config file.
Basically the plugin provides a network-based test just as razor2, pyzor
and DCC do. Working solely on the body of an email, it removes parts of it
and computes a hash value from the rest. These values will then be looked up
via DNS using the domains given in the config file(s). You need Net::DNS and
Digest::MD5 installed
%prep
%setup -q -n Mail-SpamAssassin-%{sa_version} -a 2 -a 3
%patch1 -p0
%patch2 -p1
%patch3 -p0
%patch6 -p0
%patch7 -p0
%patch10 -p0
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p2
%setup -q -n Mail-SpamAssassin-%{sa_version} -a 3
tar -zxf %{SOURCE1} -C rules
%patch -P 1
%patch -P 2 -p1
%patch -P 6
%patch -P 7 -p1
cp %{SOURCE11} ./
%build
if [ -e t/data/whitelists/winxpnews.com ]; then
echo "t/data/whitelists/winxpnews.com is not allowed to be distributed."
echo "see #102221"
#exit -1 # hidden bug description, so I can't see there - ignored
fi;
if [ -e build/cf_to_html ]; then
echo "build/cf_to_html is not allowed to be distributed."
echo "see #102221"
#exit -1 # hidden bug description, so I can't see there - ignored
fi;
# Run substitutions in default rules
sed -i -e 's|@@CONTACT_ADDRESS@@|postmaster|g' \
-e 's|@@LOCAL_RULES_DIR@@|%{_sysconfdir}/mail/spamassassin|g' \
-e 's|@@VERSION@@|%{sa_float}|g' rules/*.cf
export CFLAGS="%{optflags}"
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
CONTACT_ADDRESS="postmaster" ENABLE_SSL="yes"
CONTACT_ADDRESS="postmaster" ENABLE_SSL="yes"
make
%make_build
%check
# fails now... FIGURE out why
#make test
%if %{with test}
# Relax the crypto policies for the test-suite
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=xyz_nonexistent_file
export OPENSSL_CONF=''
%make_build -j1 test
%endif
%install
## perl-Mail-SpamAssassin stuff
@@ -217,79 +234,97 @@ sed -i -e "/\/usr\/bin/d" %{name}.files
# package only %%{_mandir}/man3
sed -i -e "s,%{_mandir}/man?,%{_mandir}/man3," %{name}.files
#
## perl-Mail-SpamAssassin-Plugin-iXhash2 stuff
install -d %{buildroot}/etc/mail/spamassassin
cp %{IXHASH}/iXhash2.pm %{buildroot}/%{perl_vendorlib}/Mail/SpamAssassin/Plugin
cp %{IXHASH}/iXhash2.cf %{buildroot}/etc/mail/spamassassin/iXhash2.cf
#
## spamassassin stuff
install -d %{buildroot}/etc/cron.daily/
install -m 0755 %{S:15} %{buildroot}/etc/cron.daily/
install -D -m0755 %{SPAMPD}/spampd.pl %{buildroot}/%{_sbindir}/spampd
mv %{buildroot}/%{_bindir}/spamd %{buildroot}/%{_sbindir}/
install -m 0644 %{S:10} %{buildroot}/etc/mail/spamassassin/local.cf
install -D -m0755 %{SPAMPD}/spampd.pl %{buildroot}%{_sbindir}/spampd
install -m 0755 %{SOURCE15} %{buildroot}%{_sbindir}/
mv %{buildroot}%{_bindir}/spamd %{buildroot}%{_sbindir}/
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin
install -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/mail/spamassassin/local.cf
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcspamd
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcspampd
echo "Most of the documentation is at ../perl-Mail-SpamAssassin/." > README.SUSE
install -D -m 0640 %{S:12} %{buildroot}/%{_fillupdir}/sysconfig.spamd
install -m 0640 %{S:14} %{buildroot}/%{_fillupdir}/
test -f %{buildroot}/usr/share/spamassassin/user_prefs.template || {
install -D -m 0640 %{SOURCE12} %{buildroot}%{_fillupdir}/sysconfig.spamd
install -m 0640 %{SOURCE14} %{buildroot}%{_fillupdir}/
test -f %{buildroot}%{_datadir}/spamassassin/user_prefs.template || {
echo "MakeMaker is broken again..."
exit 1
}
install -d %{buildroot}/usr/share/spamassassin
pushd %{buildroot}/usr/share/spamassassin && tar -xjf %{S:1} && popd
## default rules
install -d %{buildroot}%{_datadir}/spamassassin
install -D -m 0644 rules/[0-9]*.cf %{buildroot}%{_datadir}/spamassassin
## systemd stuff
mkdir -p %{buildroot}/%{_unitdir}
install -D -m 644 %{S:16} %{buildroot}/%{_unitdir}
install -D -m 644 %{S:17} %{buildroot}/%{_unitdir}
install -d %{buildroot}%{_unitdir}
install -D -m 644 %{SOURCE16} %{buildroot}%{_unitdir}
install -D -m 644 %{SOURCE17} %{buildroot}%{_unitdir}
install -D -m 644 %{SOURCE18} %{buildroot}%{_unitdir}
install -D -m 644 %{SOURCE19} %{buildroot}%{_unitdir}
%post
%service_add_post spamd.service
%service_add_post spampd.service
%service_add_post spamd.service spampd.service sa-update.timer
%{fillup_only -n spamd}
%{fillup_only -n spampd}
if [ $1 -gt 1 ]; then
# Package upgrade
for dir in $(ls -d %{_sharedstatedir}/%{name}/{,compiled/*/}[0-9\.]* 2>/dev/null); do
if [ "${dir##*/}" != "%{sa_float}" ]; then
rm -rf ${dir}
fi
done
find %{_sharedstatedir}/%{name} -type d -empty -delete 2>/dev/null || :
# Compile rules if Perl and/or spamassassin version changed
if [ ! -d %{_sharedstatedir}/%{name}/compiled/%{perl_float}/%{sa_float} ]; then
grep -q "^SPAM_SA_COMPILE.*yes.*" %{_sysconfdir}/sysconfig/spamd && %{_bindir}/sa-compile &> /dev/null || :
fi
fi
%pre
%service_add_pre spamd.service
%service_add_pre spampd.service
%service_add_pre spamd.service spampd.service sa-update.timer
%preun
%service_del_preun spamd.service
%service_del_preun spampd.service
%service_del_preun spamd.service spampd.service sa-update.timer
%postun
%service_del_postun spamd.service
%service_del_postun spampd.service
%service_del_postun spamd.service spampd.service sa-update.timer
if [ $1 -eq 0 ]; then
# Package removal
rm -rf %{_sharedstatedir}/%{name}
fi
%files
%defattr(-,root,root)
%doc spamd/README* spamd/PROTOCOL
%doc %{_mandir}/man1/*
%{_bindir}/*
%doc spamd/README spamd/README.vpopmail spamd/PROTOCOL README.SUSE
%{_mandir}/man1/sa-*
%{_mandir}/man1/spamassassin*
%{_mandir}/man1/spamd.1*
%{_bindir}/sa-*
%{_bindir}/spamassassin
%{_sbindir}/*
%{_fillupdir}/sysconfig.spamd
%{_fillupdir}/sysconfig.spampd
%{_unitdir}/spamd.service
%{_unitdir}/spampd.service
%{_unitdir}/sa-update.service
%{_unitdir}/sa-update.timer
%ghost %{_sharedstatedir}/%{name}
%files spamc
%defattr(-,root,root)
%license LICENSE
%{_bindir}/spamc
%doc %{_mandir}/man1/spamc.1*
%files -n perl-Mail-SpamAssassin -f %{name}.files
%defattr(-,root,root)
%doc CREDITS Changes LICENSE MANIFEST* NOTICE PACKAGING README
%license LICENSE
%doc CREDITS Changes MANIFEST* NOTICE PACKAGING README
%doc TRADEMARK UPGRADE USAGE sample-nonspam.txt sample-spam.txt
%doc ldap sql
%dir /etc/mail
%config(noreplace) /etc/mail/spamassassin
%config(noreplace) /etc/cron.daily/suse.cron-sa-update
%exclude /etc/mail/spamassassin/iXhash2.cf
%dir /usr/share/spamassassin
/usr/share/spamassassin/*
%files -n perl-Mail-SpamAssassin-Plugin-iXhash2
%defattr(-,root,root)
%doc %{IXHASH}/CHANGELOG %{IXHASH}/LICENSE %{IXHASH}/README
%config(noreplace) /etc/mail/spamassassin/iXhash2.cf
%{perl_vendorlib}/Mail/SpamAssassin/Plugin/iXhash2.pm
%dir %{_sysconfdir}/mail
%config(noreplace) %{_sysconfdir}/mail/spamassassin
%exclude %{perl_vendorarch}
%dir %{_datadir}/spamassassin
%{_datadir}/spamassassin/*
%changelog

View File

@@ -20,11 +20,22 @@ After=remote-fs.target network.target
Before=mail-transfer-agent.target
[Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
PrivateDevices=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
Type=forking
PIDFile=/var/run/spamd.pid
ExecStartPre=/bin/bash -c "sa-update || true"
PIDFile=/run/spamd.pid
EnvironmentFile=-/etc/sysconfig/spamd
ExecStart=/usr/sbin/spamd $SPAMD_ARGS -r /var/run/spamd.pid
ExecStart=/usr/sbin/spamd $SPAMD_ARGS -r /run/spamd.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
[Install]

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5ea0d8357b0de342d6b420e92dba9a5b4e0bd775c6a9c79e983cbdff50bf6e0a
size 112640

View File

@@ -1,56 +0,0 @@
diff -ur spampd-2.42/spampd.html spampd-2.42_20170226/spampd.html
--- spampd-2.42.orig/spampd.html 2013-12-08 12:34:02.000000000 +0100
+++ spampd-2.42/spampd.html 2015-10-18 01:22:58.000000000 +0200
@@ -96,7 +96,7 @@
<DD>
<DT><STRONG><A NAME="item_IO%3A%3AFile"><STRONG>IO::File</STRONG></A></STRONG><BR>
<DD>
-<DT><STRONG><A NAME="item_IO%3A%3ASocket"><STRONG>IO::Socket</STRONG></A></STRONG><BR>
+<DT><STRONG><A NAME="item_IO%3A%3ASocket"><STRONG>IO::Socket::IP</STRONG></A></STRONG><BR>
<DD>
<DT><STRONG><A NAME="item_HiRes"><STRONG>Time::HiRes</STRONG> (not actually required but recommended)</A></STRONG><BR>
<DD>
diff -ur spampd-2.42/spampd.pl spampd-2.42_20170226/spampd.pl
--- spampd-2.42/spampd.pl 2013-12-08 12:34:02.000000000 +0100
+++ spampd-2.42_20170226/spampd.pl 2015-10-18 01:22:58.000000000 +0200
@@ -307,19 +307,19 @@
# =cut
use strict;
-use IO::Socket;
+use IO::Socket::IP;
# =item new(interface => $interface, port => $port[, timeout = 300]);
#
# The interface and port to talk to must be specified. The interface
# must be a valid numeric IP address; the port must be numeric. If
# this call succeeds, it returns a client structure with an open
-# IO::Socket::INET in it, ready to talk to. If it fails it dies,
+# IO::Socket::IP in it, ready to talk to. If it fails it dies,
# so if you want anything other than an exit with an explanatory
# error message, wrap the constructor call in an eval block and pull
# the error out of $@ as usual. This is also the case for all other
# methods; they succeed or they die. The timeout parameter is passed
-# on into the IO::Socket::INET constructor.
+# on into the IO::Socket::IP constructor.
#
# =cut
@@ -327,7 +327,7 @@
my ($this, @opts) = @_;
my $class = ref($this) || $this;
my $self = bless { timeout => 300, @opts }, $class;
- $self->{sock} = IO::Socket::INET->new(
+ $self->{sock} = IO::Socket::IP->new(
PeerAddr => $self->{interface},
PeerPort => $self->{port},
Timeout => $self->{timeout},
@@ -1171,7 +1171,7 @@
=item B<IO::File>
-=item B<IO::Socket>
+=item B<IO::Socket::IP>
=item B<Time::HiRes> (not actually required but recommended)

BIN
spampd-2.62.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -20,9 +20,20 @@ After=remote-fs.target
Before=mail-transfer-agent.target
[Service]
# added automatically, for details please see
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
ProtectSystem=full
PrivateDevices=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
Type=forking
PIDFile=/var/run/spampd.pid
ExecStartPre=/bin/bash -c "sa-update || true"
PIDFile=/run/spampd.pid
EnvironmentFile=-/etc/sysconfig/spampd
ExecStart=/usr/sbin/spampd $SPAMPD_OPTIONS
ExecReload=/usr/bin/kill -HUP $MAINPID

View File

@@ -1,43 +0,0 @@
#!/bin/bash
#
# paranoia settings
#
umask 022
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
if [ -e /etc/sysconfig/spamd ]
then
. /etc/sysconfig/spamd
fi
if [ "$SPAM_SA_UPDATE" = "yes" ]
then
/usr/bin/sa-update &> /dev/null
result=$?
if [ "$SPAM_SA_COMPILE" = "yes" -a $result = 0 ] ; then
/usr/bin/sa-compile &> /dev/null
fi
if [ "$SPAM_SPAMD_RESTART" = "yes" -a $result = 0 ] ; then
/sbin/service spamd restart &> /dev/null
fi
if [ "$SPAM_AMAVISD_RESTART" = "yes" -a $result = 0 ] ; then
/sbin/service amavis restart &> /dev/null
fi
if [ $result = 2 ] ; then
echo "sa-update lint check failed" | \
logger -t suse.cron-sa-update
fi
if [ $result -ge 3 ] ; then
echo "sa-update failed, exitcode $result" | \
logger -t suse.cron-sa-update
fi
fi
exit 0

View File

@@ -9,21 +9,12 @@
# Default is "-d -c -L"
SPAMD_ARGS="-d -c -L"
## Path: Network/Mail/Spamassassin
## Description: Call sa-update periodicaly
## Type: yesno
## Default: "no"
#
# Set this varible to yes if you want the daily cron job
# to call sa-update.
SPAM_SA_UPDATE="no"
## Path: Network/Mail/Spamassassin
## Description: Compile SpamAssassin ruleset into native code
## Type: yesno
## Default: "no"
#
# Set this varible to yes if you want the daily cron job
# Set this varible to yes if you want the sa-update.service
# compile SpamAssassin ruleset into native code after
# calling sa-update.
SPAM_SA_COMPILE="no"
@@ -33,7 +24,7 @@ SPAM_SA_COMPILE="no"
## Type: yesno
## Default: "yes"
#
# Set this varible to yes if you want the daily cron job
# Set this varible to yes if you want the daily sa-update.service
# restart spamd after recompiling spamassassin ruleset.
SPAM_SPAMD_RESTART="yes"
@@ -42,7 +33,7 @@ SPAM_SPAMD_RESTART="yes"
## Type: yesno
## Default: "yes"
#
# Set this varible to yes if you want the daily cron job
# Set this varible to yes if you want the sa-update.service
# restart amavisd after recompiling spamassassin ruleset.
SPAM_AMAVISD_RESTART="yes"

View File

@@ -1 +1 @@
SPAMPD_OPTIONS="--host=localhost:10025 --relayhost=localhost:10026 --user=vscan --tagall --children=5 --maxsize=768 --homedir=/home/vscan"
SPAMPD_OPTIONS="--host=localhost:10025 --relayhost=localhost:10026 --user=vscan --tagall --children=5 --maxsize=7168 --homedir=/home/vscan"

40
timed-sa-update Normal file
View File

@@ -0,0 +1,40 @@
#!/bin/bash
#
# paranoia settings
#
umask 022
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
if [ -e /etc/sysconfig/spamd ]
then
. /etc/sysconfig/spamd
fi
/usr/bin/sa-update &> /dev/null
result=$?
if [ "$SPAM_SA_COMPILE" = "yes" -a $result = 0 ] ; then
/usr/bin/sa-compile &> /dev/null
fi
if [ "$SPAM_SPAMD_RESTART" = "yes" -a $result = 0 ] ; then
/sbin/service spamd try-restart &> /dev/null
fi
if [ "$SPAM_AMAVISD_RESTART" = "yes" -a $result = 0 ] ; then
/sbin/service amavis try-restart &> /dev/null
fi
if [ $result = 2 ] ; then
echo "sa-update lint check failed" | \
logger -t timed-sa-update
fi
if [ $result -ge 3 ] ; then
echo "sa-update failed, exitcode $result" | \
logger -t timed-sa-update
fi
exit 0