Closed ghost closed 5 years ago
Some system info: Kolab 9.0 (Winterfell) on Debian 9 (stretch), Roundcube 1.3.6, Postfix 3.1.8-0+deb9u1, authres dev-master, php-dkim dev-master
Because the error happens in DKIM
, it means you have the fallback DKIM verification enabled right? And the error doesnt occur when you have disabled the fallback DKIM verifier?
Assuming so, what exactly do you mean with import? Do the emails even have a body at all or do those emails only consists of headers? Can you post a redacted example message?
Well - I can't view those emails, because of the bug. Where can I enable or disable fallback DKIM?
You can disable the internal DKIM verifier in Settings -> Preferences -> Authentication Status
sorry going back to this, but I got the same issue.
what happens is that for whatever reason, $rcmail->imap->get_raw_body() sometimes returns an empty string, and in the DKIM_Verify constructor (in DKIM.php), if the raw message is empty, it throws an exception.
A way to overcome that is to modify (authres_status.php line 426-427)/get_authentication_status() with:
$results = array();
try {
$dkimVerify = new DKIM_Verify($body);
$results = $dkimVerify->validate();
} catch (Exception $e) {
/// Defaulting to no results
$results = array();
}
Thanks for finding the cause, please check v0.5.1 which should fix this :)
I have a number of mail imported from a different IMAP server to my main IMAP account. A relevant number of these can't be viewed via Roundcube / Kolab - they don't get displayed at all. In /var/log/roundcube/errors I get the following errors upon trying to view one of these mails:
I'll be happy to provide more info if needed