Hello, My name is Noury, and I?m new here. I?ve been using dovecot IMAP for years, but I want to do now some extra things. I want to call a script from within dovecot, to build a suspicious IP addresses list when authentication fails. I have tried the PostLoginScripting technic. It works fine but it doesn?t suit my needs. The script executes only after a successful login. I want to execute my script only when auth fails. If I can execute a script and check into it if auth failed, I would be nice too. A kind of ? PreLoginScript" Is there a way to achieve this? I?m reading now auth.log file, but I would like to have a realtime processing. Thanks in advance. Noury
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> <br> </div> <blockquote type="cite"> <div> On 09/12/2019 15:39 nb via dovecot < <a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> Hello, </div> <div> <br> </div> <div> My name is Noury, and I’m new here. </div> <div> I’ve been using dovecot IMAP for years, but I want to do now some extra things. </div> <div> <br> </div> <div> I want to call a script from within dovecot, to build a suspicious IP addresses list when authentication fails. </div> <div> <br> </div> <div> I have tried the PostLoginScripting technic. It works fine but it doesn’t suit my needs. The script executes only after a successful login. </div> <div> I want to execute my script only when auth fails. If I can execute a script and check into it if auth failed, I would be nice too. </div> <div> <br> </div> <div> A kind of « PreLoginScript" </div> <div> <br> </div> <div> Is there a way to achieve this? </div> <div> I’m reading now auth.log file, but I would like to have a realtime processing. </div> <div> <br> </div> <div> Thanks in advance. </div> <div> <br> </div> <div> Noury </div> </blockquote> <div> <br> </div> <div> Try looking into <a href="https://wiki.dovecot.org/Authentication/Policy">https://wiki.dovecot.org/Authentication/Policy</a> </div> <div> <br> </div> <div> It's probably easiest way to do this. </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>