mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-02-24 16:03:02 +08:00
Allow localhost to override HTTP access controls + change sieve runtime error default log level
Some checks failed
trivy / Check (push) Failing after -8m27s
Some checks failed
trivy / Check (push) Failing after -8m27s
This commit is contained in:
parent
660f89b909
commit
3e0946743d
2 changed files with 7 additions and 2 deletions
|
@ -63,7 +63,12 @@ impl JMAP {
|
|||
let ctx = HttpContext::new(&session, &req);
|
||||
match ctx.has_endpoint_access(&self.core).await {
|
||||
StatusCode::OK => (),
|
||||
status => return Ok(status.into_http_response()),
|
||||
status => {
|
||||
// Allow lookup to avoid lockout
|
||||
if !session.remote_ip.is_loopback() {
|
||||
return Ok(status.into_http_response());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
match path.next().unwrap_or_default() {
|
||||
|
|
|
@ -325,11 +325,11 @@ impl EventType {
|
|||
| SieveEvent::QuotaExceeded
|
||||
| SieveEvent::ListNotFound
|
||||
| SieveEvent::ScriptNotFound
|
||||
| SieveEvent::RuntimeError
|
||||
| SieveEvent::MessageTooLarge => Level::Warn,
|
||||
SieveEvent::SendMessage => Level::Info,
|
||||
SieveEvent::UnexpectedError => Level::Error,
|
||||
SieveEvent::ActionAccept
|
||||
| SieveEvent::RuntimeError
|
||||
| SieveEvent::ActionAcceptReplace
|
||||
| SieveEvent::ActionDiscard
|
||||
| SieveEvent::ActionReject => Level::Debug,
|
||||
|
|
Loading…
Reference in a new issue