Re: Connection statistics per user and IP

2019-07-11 Thread andre via dovecot
I hope I am not of topic, but you can have a look on my implementation, using post login script feature of Dovecot. I am using an SQlite database to send a monthly report: https://homebox.readthedocs.io/en/latest/email-access-monitoring/ An exemple is at the end of the page. Feel free to cop

Re: Re: Feature request: exclude IP/network in allow_nets extra field

2019-04-30 Thread andre via dovecot
Sorry for the top posting, I have not setup my new phone yet. Here the script sample: https://github.com/progmaticltd/homebox/blob/dev/install/playbooks/roles/dovecot/files/access-check-whitelist.sh André. Tue Apr 30 15:33:51 GMT+01:00 2019 andre : > > Hello, Zhang. > > You can easily do thi

Re: Feature request: exclude IP/network in allow_nets extra field

2019-04-30 Thread andre via dovecot
Hello, Zhang. You can easily do this without a new feature in Dovecot. - Create a post login script, for instance, in bash. - install grepcidr on your server. Your post login script can use grepcidr to check for white or black list. https://wiki.dovecot.org/PostLoginScripting I have impleme