Skip to content

hMailserver

zecman edited this page Aug 17, 2020 · 7 revisions

To add hMailserver SMTP and IMAP protection, add this block to the config file:

`

    <Source>hMailserver</Source>
    <PathAndMask>
      C:/Program Files/hMailserver/logs/**/*.log
      C:/Program Files (x86)/hMailserver/logs/**/*.log
    </PathAndMask>
    <FailedLoginRegex>
      <![CDATA[
        ^".*\t.*\t.*\t"(?<timestamp>.+)"\t"(?<ipaddress>.+)"\t.*(?:Authentication.failed|Invalid.user.name.or.password).*$
      ]]>
    </FailedLoginRegex>
    <FailedLoginRegexTimestampFormat>yyyy-MM-dd HH:mm:ss.fff</FailedLoginRegexTimestampFormat>
    <PlatformRegex>Windows</PlatformRegex>
    <PingInterval>10000</PingInterval>
    <MaxFileSize>16777216</MaxFileSize>

  </LogFile>

`

To get this working you must activate SMTP and IMAP logging in the admin interface of hMailserver.

Clone this wiki locally