Re: Automated check log and block postfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jan 01, 2020 at 10:27:02AM +0100, siefke_listen@xxxxxx wrote:
> I have fail2ban installed but there is nothing happen with. Okay is
> connect and disconnect. No error message. I not understand why is so
> but is ok. 

You need to configure fail2ban. It's more like a framework with lots of
builtin but little preconfigured/preenabled stuff.

  * You need to habe the postfix jail or multiple postfix jails enabled:
      
      [postfix]
      enabled = true

      [postfix-sasl]
      enabled = true

      (...)

  * You need to ensure that fail2ban actually has logs to work with. For
    example, if postfix does not write log files but all log output ends
    up in journald, then you might need to configure fail2ban with the
    systemd backend to get it to actually consume the logs.

    [postfix]
    backend = systemd # or auto

    (...)

  * You need to make sure that the regexes actually match messages.

That being said, unless you want to do more elaborate evaluation of
attempts the iptables-based recent module as already suggested in this
thread is the simpler, better solution.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux