6 "github.com/mjl-/mox/ratelimit"
9var LimiterFailedAuth *ratelimit.Limiter
11// LimitesrsInit initializes the failed auth rate limiter.
13 LimiterFailedAuth = &ratelimit.Limiter{
14 WindowLimits: []ratelimit.WindowLimit{
16 // Max 10 failures/minute for ipmasked1, 30 or ipmasked2, 90 for ipmasked3.
18 Limits: [...]int64{10, 30, 90},
21 Window: 24 * time.Hour,
22 Limits: [...]int64{50, 150, 450},