Connection and login scripts callback
27 Sep
2018
27 Sep
'18
10:45 a.m.
Hello,
currently there is very handy post-login scripting already implemented but it naturally executes only when successful login happens. I would like to have another two script callbacks which runs:
- immediately after client connects to server - dovecot should run script with connection IP and wait for result and then reject/accept connection with return message accordingly.
- after failed login - dovecot should exec script with connection IP, login params without waiting for result
The main reason behind this idea is to use some logic, database (redis...) or indicators like GeoIP, p0f as bruteforce prevention. It might be also usable for IP based ACLs.
AFAIK the only way to create something similar is to proxy whole authentication to some external process, which is not desirable when dovecot manages user database.
SH
27 Sep
27 Sep
10:48 a.m.
2412
Age (days ago)
2412
Last active (days ago)
1 comments
2 participants
participants (2)
-
Aki Tuomi
-
Stanislav Humplík