# A correct password is refused from one IP address

UrbeStack sysadmin note about UrbeStack. Last updated 30 Nov 2026.

The web interface and mail refuse logins from one IP address even with the correct password. UrbeStack flagged the IP address after too many failed logins, and you can lift the flag with one command.

## Symptoms

The web interface deliberately gives the same `Invalid credentials` message it gives for a wrong password.

A mail client connecting from that IP address gets the reason.

```output
[ALERT] logins from 203.0.113.10 are refused until 2026-11-30T09:06:55Z
```

For those mail logins, Dovecot logs `Policy check action is drop connection` in `/var/log/maillog` on AlmaLinux or `/var/log/mail.log` on Ubuntu.

## Cause

UrbeStack counts failed logins by IP address. It flags an IP address for 900 seconds (`security.flag_time`) after 10 failures (`security.flag_tries`) within 900 seconds (`security.flag_window`).

While the flag is active, UrbeStack refuses every login from that IP address regardless of the password. The `urbestack-login-refuse` command sets the same flag by hand.

## Resolution

List the active flags. The command shows each flag's IP address, `kind`, and `until`.

```
urbestack-login-flag-list --state active
```

Lift the flag for the IP address.

```
urbestack-login-unflag --address 203.0.113.10
```

You can log in again from that IP address immediately.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
