How to treat continued Over Quota responses as potential Denial of Service attacks

Document ID: 10485

Synopsis

MailSite (V9) contains the ability to treat remote hosts that persistently ignore a 4XX or 5XX over quota response to a RCPT TO: command as an attack and block the host. This works i

More Information

How to treat continued Over Quota responses as potential Denial of Service attacks MailSite (V9) contains the ability to treat remote hosts that persistently ignore a 4XX or 5XX over quota response to a RCPT TO: command as an attack and block the host. This works in conjunction with your DHAP (Dictionary Harvest Attack Prevention) settings.

Be default, the DHAP feature will detect hosts trying to send to non existent users. By adding the property below you can extend this to detect hosts that continually try to resend (aggressively) even though 4XX or 5XX errors are being generated when a mailbox is over quota.

For Registry Implementations:

WARNING!!
Incorrectly editing the Registry can damage the server, please proceed with care.
  1. Click on the Start button.
  2. Select Run, and enter Regedit
  3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\ROCKLIFFE\MAILSITE
  4. Create a new registry key under MailSite called "smtprainternal"
  5. Create a DWORD property called "DhapOverQuota"
  6. Hit Enter and then give the key a value of 1
  7. OK and Exit out of Regedit
  8. Restart the SMTPRA and the SMTPDA services

For SQL Implementations

  1. Open SQL Enterprise Manager and navigate to the MailSite database
  2. Locate the MailServerProperties table
  3. Add the Following:
  4. ServiceName PropertyName ServerRoleId PropType PropIntValue PropStringValue
    SMTPRAInternal DhapOverQuota 0 4 1 Null
  5. Restart SMTPRA and SMTPDA
  6. This will treat any host that continually generates a 4XX & 5XX error (when mailbox is over quota) within the DHAP configured limits as an attack and block the IP for a time period specified under the DHAP settings.