Start a conversation

Configuring AntiHammering in Kerio Connect

Overview

Kerio Connect has a built-in AntiHammering security feature that protects from frequent SMTP logins by suspicious IP addresses. Once the failed login limit is reached, the Kerio Connect blocks the IP address, which makes it impossible for devices (Apple macOS) to log in. The same problem may occur for IMAP, POP3, HTTP services.

Security logs generate similar errors:

SMTP: AntiHammering - IP address x.x.x.x will be blocked for 5 minutes, too many failed logins from this IP address.
SMTP: AntiHammering: connection from IP address x.x.x.x is blocked

antihammering1.png

Prerequisites

Administrator (root) access to the Kerio Connect server

Diagnosis

By default, Anti-Hammering is enabled for all standard Kerio Connect services, such as POP3, IMAP, HTTP, SMTP, LDAP, NNTP, and XMPP.  The Anti-hammering checks the failed login attempts during 1 min period and if the limit of 10 is reached, the reported IP address is being blocked for the next 5 minutes. The IP addresses can be excluded from the Anti-hammering check by specifying the SafeAcl variable.

All these options can be changed by modifying mailserver.cfg file.

Solution

  1. Stop the Kerio Connect service.
  2. Navigate to the Kerio Connect installation folder. Defaults are:
    1. Windows: C:\Program Files\Kerio\MailServer
    2. macOS: /usr/local/kerio/mailserver
    3. Linux: /opt/kerio/mailserver
  3. Open mailserver.cfg and locate the AntiHammering table. Modify the necessary limits:
    1. FailedLogins - number of login failures for specific service, i.e. SMTP. The default value is 10.
    2. CheckTime - the time period to check the same IP address. The default is 60 seconds.
    3. BlockTime - the duration of IP address blocking. The default is 300 seconds.
      antihammering2.png
  4. (Optional) Modify per service variables to disable specific protocols, i.e. setting Pop3Enabled to 0 (zero) will disable the Anti-hammering protection for POP3 service.
  5. Start the Kerio Connect service.

Confirmation

The Anti-hammering limits are set to the custom values.

Related Article

Unlocking Accounts for Locked-Out Users in Kerio Connect

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments