Fixed missing `quarantined` cast to bool preventing mobile app crashes.
Full changelog
- Fixed missing
quarantinedcast to bool causing mobile app crash - https://github.com/anonaddy/addy-android/issues/61
Self‑hosted anonymous email forwarding service for protecting personal email addresses
Fixed missing `quarantined` cast to bool preventing mobile app crashes.
quarantined cast to bool causing mobile app crash - https://github.com/anonaddy/addy-android/issues/61In order to quarantine spam emails detected by Rspamd instead of rejecting them we need to make some changes to Rspamd config.
Edit /etc/rspamd/local.d/milter_headers.conf and update the add_should_quarantine_header routine (this should already be present):
add_should_quarantine_header = <<EOD
return function(task, common_meta)
local metric = task:get_metric_score('default')
local score = metric and metric[1] or 0
local reject_threshold = 15.0
local should_quarantine = false
local quarantine_reason = nil
if score >= reject_threshold then
should_quarantine = true
quarantine_reason = quarantine_reason or '5.7.1 Spam message rejected'
end
if should_quarantine then
return nil,
{
['X-AnonAddy-Should-Quarantine'] = 'Yes',
['X-AnonAddy-Quarantine-Reason'] = quarantine_reason or '5.7.1 Spam message rejected'
},
{
['X-AnonAddy-Should-Quarantine'] = 0,
['X-AnonAddy-Quarantine-Reason'] = 0
},
{}
end
return nil,
{},
{
['X-AnonAddy-Should-Quarantine'] = 0,
['X-AnonAddy-Quarantine-Reason'] = 0
},
{}
end
EOD;
}
Then edit (or create) /etc/rspamd/local.d/actions.conf and set a high score threshold for the rejection action. This is to prevent Rspamd rejecting messages outright so that we can instead quarantine them:
reject = 500; # disable hard reject in order to quarantine
Then run sudo service rspamd reload to reflect these changes.
Full Changelog: https://github.com/anonaddy/anonaddy/compare/v1.5.0...v1.5.1
Added pinned aliases feature that appears at the top of your alias list.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Beta — feedback welcome: [email protected]