Re: Get a list of currently active IMAP connections?

2022-08-22 Thread Cristiano Deana
Hi, I think this i wrong. With that command you catch all _established_ connections. If I just connect to 993/143 WITHOUT auth, I will have a smtp connection open. Il 16/08/2022 22:46, Antonio Leding ha scritto: At the risk of being pedestrian, I just use something like |sudo netstat -an |

Re: Get a list of currently active IMAP connections?

2022-08-21 Thread Jaroslaw Rafa
Dnia 20.08.2022 o godz. 19:34:03 Jaroslaw Rafa pisze: > I have one more question regarding this. > > My service needs to access the socket /var/run/dovecot/anvil. The problem is > that this socket (at least on my system) has permissions only for root: > > srw--- 1 root root 0 May 22 2020

Re: Get a list of currently active IMAP connections?

2022-08-20 Thread Jaroslaw Rafa
Dnia 16.08.2022 o godz. 23:54:00 Jaroslaw Rafa pisze: > > It's an interesting option, but after looking into "doveadm" source code I > was able to reimplement the query that "doveadm who" does with a few lines > of simple Perl code. It's exactly what I want, as it can be easily > integrated into

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
NO it is showing active open imap connections fyi Happy Friday !!! Thanks - paul Paul Kudla Scom.ca Internet Services 004-1009 Byron Street South Whitby, Ontario - Canada L1N 4S3 Toronto 416.642.7266 Main 1.866.411.7266 Fax 1.888.892.7266 Email p...@scom.ca

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread Narcis Garcia
(after setting and restarting service) $ cat /etc/dovecot/dovecot.conf | grep -ie 'include' !include_try /usr/share/dovecot/protocols.d/*.protocol # Most of the actual configuration gets included below. The filenames are !include conf.d/*.conf # A config file can also tried to be included

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread Narcis Garcia
Do you mean ps is reading dovecot.conf ?! Narcis Garcia __ I'm using this dedicated address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors. El 19/8/22 a les 9:40, Aki

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread Aki Tuomi
dovecot.conf, not ps config. Aki > On 19/08/2022 10:38 EEST Narcis Garcia wrote: > > > What config? > > I see no configuration file documented on ps manpage. > > > > Narcis Garcia > > __ > I'm using this dedicated address because personal addresses aren't > masked enough at

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread Narcis Garcia
What config? I see no configuration file documented on ps manpage. Narcis Garcia __ I'm using this dedicated address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors. El

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread 202107-dovecot
Add `verbose_proctitle = yes` to your config to get usernames and IPs in the ps listing.

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread Narcis Garcia
Hi Paul, with your command syntax I get no account/IP on Debian GNU/Linux: $ ps -axww | grep imap 19024 ?S 0:00 dovecot/imap 19696 ?S 0:00 dovecot/imap 20515 ?S 0:04 dovecot/imap 22247 pts/4S+ 0:00 grep imap 24720 ?S 0:03 dovecot/imap

Re: Get a list of currently active IMAP connections?

2022-08-19 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
I use ps : (greping by imap & idle) # ps -axww | grep imap | grep IDLE thant and split() in python 8606 - S 0:08.78 imap: [ke...@elirpa.com 54.242.98.60 IDLE] (imap) 12234 - I 0:01.00 imap: [recept...@clancyca.com 72.143.119.178 IDLE] (imap) 20668 - S

Re: Get a list of currently active IMAP connections?

2022-08-18 Thread J Doe
On 2022-08-16 16:46, Antonio Leding wrote: At the risk of being pedestrian, I just use something like |sudo netstat -an | grep ‘:[ IMAP_PORT ]’| I’m pretty sure you thought of this but still, thought I would toss it out… Hi Antonio and Jaroslaw, I don't think the second solution is

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Jaroslaw Rafa
Dnia 16.08.2022 o godz. 23:37:05 Aki Tuomi pisze: > > doveadm_password = secret > > service doveadm { > inet_listener http { > port = 8080 > } > } > > should allow you to use `who` command over HTTP API. It's an interesting option, but after looking into "doveadm" source code I was

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Antonio Leding
At the risk of being pedestrian, I just use something like `sudo netstat -an | grep ‘:[ IMAP_PORT ]’` I’m pretty sure you thought of this but still, thought I would toss it out… Cheers - - - On 16 Aug 2022, at 13:15, Jaroslaw Rafa wrote: Hello Dovecot community, I have a question: is it

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Aki Tuomi
> On 16/08/2022 23:34 EEST Jaroslaw Rafa wrote: > > > Dnia 16.08.2022 o godz. 23:19:14 Aki Tuomi pisze: > > Have you tried `doveadm who`? > > Why haven't I found it in the documentation? I was really searching... :) > Thank you! > > But this still requires launching an external executable

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Jaroslaw Rafa
Dnia 16.08.2022 o godz. 23:19:14 Aki Tuomi pisze: > Have you tried `doveadm who`? Why haven't I found it in the documentation? I was really searching... :) Thank you! But this still requires launching an external executable for each connection request. Optimal solution would be to get it via

Re: Get a list of currently active IMAP connections?

2022-08-16 Thread Aki Tuomi
Have you tried `doveadm who`? Aki > On 16/08/2022 23:15 EEST Jaroslaw Rafa wrote: > > > Hello Dovecot community, > > I have a question: is it possible to programmatically get from Dovecot a > list of currently active IMAP sessions (with IP addresses)? Via a plugin or > something? > > Or