Package: sympa
Version: 6.1.23~dfsg-2
Hi,
when trying to archive an encrypted messages, sympa will try to "clean"
the message, but as it doesn't lookup the list context in Message->new
(due to $noxsympato = 1) it doesn't pass the list to
tools::smime_decrypt - which then tries to use the keys for a global
list "sympa" (without vhost).
As the archiver keeps trying to handle failed messages, it will try
forever to handle the message.
There are two options here imho: either Message->new needs to lookup
the list context (or take it as parameter instead of $noxsympato) and
decrypts mails for the archive, or Message->new must not try to
decrypt mails for the archive.
See patch for the latter option.
Regards,
Stefan
syslog snippet:
---
notice Archiving [email protected] for list [email protected]
err tools::smime_find_keys() unable to opendir /var/lib/sympa/list_data/sympa:
No such file or directory
err tools::smime_decrypt() Unable to decrypt message : missing certificate file
err Archive::clean_archived_message() Unable to create a Message object with
file /var/lib/sympa/wwsarchive/[email protected]/2016-02/arctxt/1
err main::mail2arc() Could not clean message, ignoring message
---
--- Message.pm 2016-02-19 10:46:14.971013121 +0100
+++ Message.pm 2016-02-19 10:46:40.194243252 +0100
@@ -274,7 +274,7 @@
}
## S/MIME
- if ($Conf::Conf{'openssl'}) {
+ if ($Conf::Conf{'openssl'} && !(defined $noxsympato)) {
## Decrypt messages
if (($hdr->get('Content-Type') =~ /application\/(x-)?pkcs7-mime/i) &&