server is exposed to regular dovecot and exim bruteforce attempts, in order to guess valid mail & password.
have written a script that scans logs of wrong ssh logins and blocks the ip for one day
but without the proper IP of the client doing the wrong
IP can not be blocked by iptables
how can dovecot / exim be configured, to log the actual IP address of the client that is trying to guess a password?
==> /var/log/exim/main.log <==
2020-06-26 19:34:48 dovecot_login authenticator failed for (User) [10.0.2.2]: 535 Incorrect authentication data (set_id=phpthumbdebug@domain.com)
2020-06-26 19:34:48 dovecot_login authenticator failed for (User) [10.0.2.2]: 535 Incorrect authentication data (set_id=h1@domain.com)
found this: lmtp
https://doc.dovecot.org/configuration_manual/protocols/lmtp_server/
and that:
https://wiki2.dovecot.org/HAProxy
and this:
https://doc.dovecot.org/configuration_manual/proxy_settings/
but it's all too complicated X-D
simply would like to have the proper IP client address in the logs
and not 10.0.2.2 (ip of proxy)
can anyone help?
thanks