Hello,
I want to know if there is an option in Dovecot to send an alert, or run a script when someone is using the master user facility.
I can do something myself with fail2ban, but maybe there is an option in Dovecot?
Thanks. André.
Hello Again,
It's more complex than I thought to do this with fail2ban, especially when using the web mail.
So, I am asking again, if anyone knows how to run a custom script every time master user is used, I would be happy.
I already have a post login script, but I don't find any variable in the environment that tell me if it's a master user login or not.
Thanks.
On 09/10/14 10:36, Andre Rodier wrote:
Hello,
I want to know if there is an option in Dovecot to send an alert, or run a script when someone is using the master user facility.
I can do something myself with fail2ban, but maybe there is an option in Dovecot?
Thanks. André.
On 09/10/14 13:04, Andre Rodier wrote:
Hello Again,
It's more complex than I thought to do this with fail2ban, especially when using the web mail.
So, I am asking again, if anyone knows how to run a custom script every time master user is used, I would be happy.
I already have a post login script, but I don't find any variable in the environment that tell me if it's a master user login or not.
Thanks.
On 09/10/14 10:36, Andre Rodier wrote:
Hello,
I want to know if there is an option in Dovecot to send an alert, or run a script when someone is using the master user facility.
I can do something myself with fail2ban, but maybe there is an option in Dovecot?
Thanks. André.
Hi again,
I found the variable passed to the script that refers to master user.
It's 'MASTER_USER'
Thanks.
Am 09.10.2014 um 11:36 schrieb Andre Rodier:
Hello,
I want to know if there is an option in Dovecot to send an alert, or run a script when someone is using the master user facility.
I can do something myself with fail2ban, but maybe there is an option in Dovecot?
perhaps you can do it with scripts but you should prefer trigger it out of log
however perhaps read
http://wiki2.dovecot.org/PostLoginScripting
Thanks. André.
Best Regards MfG Robert Schetterer
-- [*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein
On 09/10/14 10:36, Andre Rodier wrote:
Hello,
I want to know if there is an option in Dovecot to send an alert, or run a script when someone is using the master user facility.
I can do something myself with fail2ban, but maybe there is an option in Dovecot?
Thanks. André.
I am answering to myself.
If anyone is interested, here a custom perl script to report master user login functionality:
Regards, André.
participants (2)
-
Andre Rodier
-
Robert Schetterer