BackgroundI am trying to develop a method to ban users who exhibit strange behavior when logging into Dovecot by obtaining their POP-ID/login name and IP address. I want to send that information to a separate program/process that is responsible for banning the users.  The caveat is this has to be possible through Dovecot (not looking at system logs or other programs, but a program or process that Dovecot spawns on a bad login attempt).QuestionHow do you get the POP-ID/login name and IP address of a user when their authentication fails?
Get user login name and address on bad login attempt [Dovecot]
authentication;dovecot