Follow-up:
I have tested dovecot's auth-policy mechanism, and I got it to work.
However, I see now that even this auth-policy mechanism doesn't give dovecot
any way to *kill* an existing connection. It can allow dovecot to reject login
attempts, and it can cause external activities to be performed based on the
results of authentication, but terminating a connection is not something which
can be accomplished via auth-policy.
I also read your other message where you referred to a stackexchange
conversation about killing existing connections. That conversation confirms what
I have observed in my own environment: that iptables offers no way to terminate
an already established connection.
Also, "conntrack" is mentioned in that discussion, but I haven't been able to get
conntrack to work on my debian-8 system.
Therefore, I think I will have to go forward with my idea of creating my own,
personal version of dovecot which optionally allows the killing of connections
after "N" failed login attempts (where "N" is configurable).
But in any case, the auth-policy mechanism allows me to deal with login
issues more efficiently than monitoring log messages, and I will now switch
some (all?) of my dovecot-based log-monitoring activites to auth-policy.
Thank you again for *all* your suggestions and help!