Removed authentication rate limit (unnecessary since there is fail2ban)

This commit is contained in:
mdecimus
2024-12-27 14:51:11 +01:00
parent 7a905ca137
commit c7499ab67d
12 changed files with 115 additions and 146 deletions

View File

@@ -17,7 +17,6 @@ use imap_proto::{
receiver::{self, Request},
Command, ResponseCode, StatusResponse,
};
use jmap::auth::rate_limit::RateLimiter;
use mail_parser::decoders::base64::base64_decode;
use mail_send::Credentials;
use std::sync::Arc;
@@ -76,12 +75,6 @@ impl<T: SessionStream> Session<T> {
credentials: Credentials<String>,
tag: String,
) -> trc::Result<()> {
// Throttle authentication requests
self.server
.is_auth_allowed_soft(&self.remote_addr)
.await
.map_err(|err| err.id(tag.clone()))?;
// Authenticate
let access_token = self
.server