I am using dovecot virtual maildir accounts. Is it possible to find last day of login for an account by checking the last modification time of the maildir files? Lefteris
Hi You may find some Plugins if you use a front-end like round cube. I recall seeing a field in the postfix MySQL database. I'm not sure on Maildirs since mails would be delivered and timestamps changed even if user is not logging in. Cheers/DP On Fri, May 17, 2019, 18:21 Lefteris Tsintjelis via dovecot < dovecot at dovecot.org> wrote:> I am using dovecot virtual maildir accounts. Is it possible to find last > day of login for an account by checking the last modification time of > the maildir files? > > Lefteris >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190518/f64edbf6/attachment.html>
Or you can use last_login plugin, bundled with dovecot. https://wiki.dovecot.org/Plugins/LastLogin Aki> On 18 May 2019 19:43 Durga Prasad Malyala via dovecot <dovecot at dovecot.org> wrote: > > > Hi > You may find some Plugins if you use a front-end like round cube. > I recall seeing a field in the postfix MySQL database. > I'm not sure on Maildirs since mails would be delivered and timestamps changed even if user is not logging in. > > > Cheers/DP > > > On Fri, May 17, 2019, 18:21 Lefteris Tsintjelis via dovecot <dovecot at dovecot.org> wrote: > > I am using dovecot virtual maildir accounts. Is it possible to find last > > day of login for an account by checking the last modification time of > > the maildir files? > > > > Lefteris > >
Hi, not everyone is using roundcube so this is a problem and postfix does not have this field from what I have checked. The timestamp of the email files though do not change from what I see (unless I am missing something) so I guess this is the only safe way here but only in the files left in the "new" folder. On 18/05/2019 19:43, Durga Prasad Malyala via dovecot wrote:> Hi > You may find some Plugins if you use a front-end like round cube. > I recall seeing a field in the postfix MySQL database. > I'm not sure on Maildirs since mails would be delivered and timestamps > changed even if user is not logging in. > > Cheers/DP > > On Fri, May 17, 2019, 18:21 Lefteris Tsintjelis via dovecot > <dovecot at dovecot.org> wrote: > >> I am using dovecot virtual maildir accounts. Is it possible to find >> last >> day of login for an account by checking the last modification time >> of >> the maildir files? >> >> Lefteris