Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218239 - mail-filter/spamassassin: sa-update doesn't work anymore since upgrading to app-crypt/gnupg-2.0.9
Summary: mail-filter/spamassassin: sa-update doesn't work anymore since upgrading to a...
Status: RESOLVED DUPLICATE of bug 228557
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 09:38 UTC by valli
Modified: 2008-07-02 12:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valli 2008-04-18 09:38:42 UTC
We use SpamAssassin's sa-update to update the Spam rules.
Since upgrading to app-crypt/gnupg-2.0.9 this doesn't work anymore

command> sa-update -D

Here are the relevant parts of the debugging output:
Before upgrading:
=================
...
[12796] dbg: gpg: calling gpg
[12796] dbg: gpg: gpg: Signature made Wed Apr 16 11:28:44 2008 CEST using RSA key ID 24F434C
E
[12796] dbg: gpg: gpg: WARNING: signing subkey 24F434CE is not cross-certified
[12796] dbg: gpg: gpg: please see http://www.gnupg.org/faq/subkey-cross-certify.html for mor
e information
[12796] dbg: gpg: [GNUPG:] SIG_ID 7agI00MS5ABPxnYnYHTQ8g3rxog 2008-04-16 1208338124
[12796] dbg: gpg: [GNUPG:] GOODSIG 6C55397824F434CE updates.spamassassin.org Signing Key <re
lease@spamassassin.org>
[12796] dbg: gpg: gpg: Good signature from "updates.spamassassin.org Signing Key <release@sp
amassassin.org>"
[12796] dbg: gpg: [GNUPG:] VALIDSIG 0C2B1D7175B852C64B3CDC716C55397824F434CE 2008-04-16 1208
338124 0 3 0 1 2 00 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45
[12796] dbg: gpg: [GNUPG:] TRUST_UNDEFINED
[12796] dbg: gpg: gpg: WARNING: This key is not certified with a trusted signature!
...
sa-update doesn't terminate here, everything works fine


After upgrading:
================
...
[24121] dbg: gpg: calling gpg
[24121] dbg: gpg: gpg: Signature made Wed Apr 16 11:28:44 2008 CEST using RSA key ID 24F434CE
[24121] dbg: gpg: gpg: WARNING: signing subkey 24F434CE is not cross-certified
[24121] dbg: gpg: gpg: please see http://www.gnupg.org/faq/subkey-cross-certify.html for more information
[24121] dbg: gpg: [GNUPG:] ERRSIG 6C55397824F434CE 1 2 00 1208338124 1
[24121] dbg: gpg: gpg: Can't check signature: General error
error: GPG validation failed!
The update downloaded successfully, but the GPG signature verification
failed.
channel: GPG validation failed, channel failed
[24121] dbg: generic: cleaning up temporary directory/files
[24121] dbg: diag: updates complete, exiting with code 4

sa-update terminates here with error exit!

Reproducible: Always

Steps to Reproduce:
1. sa-update -D
2.
3.
Comment 1 Graham Murray 2008-04-27 06:03:21 UTC
A workaround is to add the '--nogpg' option to the sa-update command line. 
Comment 2 Ooblick 2008-05-01 09:09:50 UTC
There's an entry on the spamassassin wiki about this:

http://wiki.apache.org/spamassassin/SaUpdateKeyNotCrossCertified

Follow the instructions there to import the new GPG key:

wget http://spamassassin.apache.org/updates/GPG.KEY
sa-update --import GPG.KEY

sa-update should now work.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2008-05-01 10:21:32 UTC
Just as additional comment, this seems to be fixed upstream as of spamassassin svn rev. 610699, but not in any release yet. See https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5775

Comment 4 valli 2008-07-02 12:21:56 UTC
This is fixed in spamassassin 3.2.5.
From the spamassassin 3.2.5 announcement:
...
- bug 5775: newer gpg versions require keys to be cross-certified (backsig).
  Did a cross-verify on our sa-update public key and re-exported.
  If you are already seeing "GPG validation failed" errors from sa-update,
  see http://wiki.apache.org/spamassassin/SaUpdateKeyNotCrossCertified .)
...
(http://svn.apache.org/repos/asf/spamassassin/branches/3.2/build/announcements/3.2.5.txt)

Marked as duplicate of bug #228557

*** This bug has been marked as a duplicate of bug 228557 ***