Howdy, I'd like an adive on what to use. I have sql users, and i want to have the lastlogin of them, what is the native option for this: * Using last_login plugin which will give me the last login? * Use postlogin for imap and pop3n which will give me besides lastlogin the IP and protocol? Thanks in advanced, -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190620/4d5ae4ab/attachment.html>
Hi, we were trying both ways but: - using last_login plugin is a little complicated - postlogin was lowering performance really much Finnaly, we ended up with a script parsing the mail.log and updating values in database (we run it once per day, with log rotation). azur Cit?t Jorge Bastos via dovecot <dovecot at dovecot.org>:> Howdy, > > > > I'd like an adive on what to use. > > I have sql users, and i want to have the lastlogin of them, what is the > native option for this: > > > > * Using last_login plugin which will give me the last login? > * Use postlogin for imap and pop3n which will give me besides > lastlogin the IP and protocol? > > > > Thanks in advanced,
Hi, this seems to work very well: https://docs.iredmail.org/track.user.last.login.html You could also add "rip = $rip" in "fields" for the ip address. On 6/20/19 3:24 PM, Jorge Bastos via dovecot wrote:> > Howdy, > > I?d like an adive on what to use. > > I have sql users, and i want to have the lastlogin of them, what is > the native option for this: > > * Using last_login plugin which will give me the last login? > * Use postlogin for imap and pop3n which will give me besides > lastlogin the IP and protocol? > > Thanks in advanced, >-- Best regards, Adrian Minta -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190620/9f0ad22c/attachment.html>
Hi, Cool howto, and for protocol would this have that option also? From: dovecot <dovecot-bounces at dovecot.org> On Behalf Of Adrian Minta via dovecot Sent: Thursday, June 20, 2019 18:37 To: dovecot at dovecot.org Subject: Re: LastLogin update Hi, this seems to work very well: https://docs.iredmail.org/track.user.last.login.html You could also add "rip = $rip" in "fields" for the ip address. On 6/20/19 3:24 PM, Jorge Bastos via dovecot wrote: Howdy, I'd like an adive on what to use. I have sql users, and i want to have the lastlogin of them, what is the native option for this: * Using last_login plugin which will give me the last login? * Use postlogin for imap and pop3n which will give me besides lastlogin the IP and protocol? Thanks in advanced, -- Best regards, Adrian Minta -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190620/c6526bba/attachment.html>
> On 20 Jun 2019, at 11:36, Adrian Minta via dovecot <dovecot at dovecot.org> wrote: > > this seems to work very well: > > https://docs.iredmail.org/track.user.last.login.htmlThis is cool, but I have a question:> For MySQL/MariaDB backends, we create the sql table in database vmail.Would this interfere with or confuse postfixadmin? I use that so that users can update their own passwords and domain admins can add users and aliases.> You could also add "rip = $rip" in "fields" for the ip address.-- Lead me not into temptation, I can find the way.