How to Enable and Configure IMAP Server Protection in RdpGuard
RdpGuard
Intrusion prevention system for your Windows Server
 

IMAP Brute-Force Protection

Protection overview

RdpGuard protects your IMAP server from brute-force attacks. It monitors mail server logs or unencrypted IMAP traffic and blocks the attacker's IP address when failed login attempts reach the configured limit.

Enable and configure IMAP brute-force protection

  1. Open RdpGuard Dashboard and click IMAP under Monitored protocols.

    Disabled IMAP button in the Monitored protocols section of RdpGuard Dashboard
    Click IMAP to open its protection settings.
  2. Select Enable IMAP protection, choose a monitoring method and configure it as described below. Then click Save.

    IMAP Settings with Logs selected and a MailEnable IMAP log folder
    IMAP protection using Logs, with a MailEnable log folder.

Monitoring method for IMAP

Choose how RdpGuard detects failed IMAP login attempts:

  • Logs - read supported mail server logs.
  • Traffic - monitor unencrypted IMAP traffic.

Log-based monitoring

Logs is the recommended default method. It uses fewer resources than Traffic and works with SSL/TLS connections. RdpGuard can also detect usernames when they are available in the supported log records.

IMAP server

Select the mail server software installed on this computer:

Log location

Make sure server logging is enabled, then specify where RdpGuard should read the logs:

  • Kerio Connect: select the security.log file.
  • Axigen: select the security.txt file. Enable security logging with enableSecurityLog = yes in axigen.cfg.
  • MailEnable, hMailServer, MDaemon and SmarterMail: select the server's log folder.
  • MS Exchange: select the IMAP protocol log folder, usually C:\Program Files\Microsoft\Exchange Server\V15\Logging\Imap4. A log folder is required; Windows Application Event Log monitoring is not supported for IMAP.

Exchange IMAP protocol logging is disabled by default. To enable it, run this command in Exchange Management Shell, replacing YOUR-SERVER with your server name:

Set-ImapSettings -Server "YOUR-SERVER" -ProtocolLogEnabled $true

Restart the Exchange IMAP4 services to apply the logging change; see Microsoft's protocol logging instructions.

Click Save in IMAP Settings to apply your RdpGuard configuration.

Traffic-based monitoring

Traffic detects failed logins by recognizing known authentication-error responses in unencrypted IMAP traffic. It uses more resources than Logs and does not detect usernames.

It cannot inspect SSL/TLS traffic, including connections upgraded with STARTTLS. Use Logs for encrypted connections.

IMAP Settings with Traffic and WinPcap/Npcap selected and the IMAP ports field empty
IMAP traffic monitoring with WinPcap/Npcap.

Select Traffic, then choose a capture method:

IMAP ports

Leave this field empty to monitor port 143, or enter the ports used by your IMAP server. Separate multiple ports with commas, for example 143, 1143. Adding an encrypted port such as 993 does not enable SSL/TLS traffic monitoring.

Click Save to apply the settings. To check for monitoring errors, open View, Show event log in RdpGuard Dashboard.

RdpGuard 10.4.5 Free Trial

RdpGuard protects:

Our customers say

"This sotware is really great. It's a relief. Because my server is constantly under attack. Thanks RdpGuard" - Joaquim De Sousa Marques

"Nice product. I used to implement something similiar in a low-tech and cumbersome manner via a script called TSBlock (not mine). This makes it much easier and is well worth the pricetag for SMB's." - J. Johnson

"Absolutely amazed at your product. We are a church in the North Dallas area, and I discovered this morning multiple failed logon attempts via our Remote Access Server. A friend suggested your product, so I immediately downloaded the trial. It had a list of about five blocked IP addresses in minutes, and that was enough to lead me to push the BUY button. Over the past 10-15 minutes the list is now about thirty with at least a third being international attempts to break into our system. Thanks for a great product. You may have just saved us much grief." - John Hallford

"Love the software. RDP on our Windows servers is just ridiculous. We would block it in the router but we have lots of old-time customers that would have issues." - Scott Hirsch

"Love the software! Makes it easier than tailoring VB Scripts!!" - Nick Brennan

"It's a great product - really stopping those RDP attackers :-)" - Dave, UK

"First of all: Your application is very (!!!) useful and I like it very much securing my 2012 R2 server. RdpGuard is the best solution, I found on the market and after 10 minutes of testing it I ordered the fully-featured version. :-)" - Carsten Baltes

Our Other Products
Copyright © 2012-2026 Netsdk Software FZE. All rights reserved.  Terms of Use.  Privacy Policy.  Refund Policy.