Last Login Info

Post your MailEnable suggestions here.
Post Reply
mwhatley
Posts: 19
Joined: Tue May 02, 2006 2:57 pm

Last Login Info

Post by mwhatley » Fri Nov 05, 2010 7:15 pm

It would help GREATLY if I could see when was the last login for a mailbox. I am using MS SQL for my database on a 2k8 server running ME 4.26 Ent. I know this has been asked about for a long time and we keep being told maybe in the next revision. Please, is there any way to make this happen? I have customers with hundreds of mailboxes and am being asked when was the last time a mailbox was checked and such. It would be really nice if it would show up as a column in the management interface.

vihuco
Posts: 1
Joined: Thu Nov 11, 2010 1:42 am

Re: Last Login Info

Post by vihuco » Thu Nov 11, 2010 2:06 am

I have developed an application that reports I complete access among others data if the shipment wishes you you prove so that it

mwhatley
Posts: 19
Joined: Tue May 02, 2006 2:57 pm

Re: Last Login Info

Post by mwhatley » Thu Nov 11, 2010 4:23 pm

Would be interested in your app. Please post a link or whatever for me to look at it.

MailEnable
Site Admin
Posts: 4441
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Re: Last Login Info

Post by MailEnable » Wed Nov 17, 2010 12:09 am

This should allow you to derive the last login time: www.mailenable.com/developers/LastLoginTime.zip

To run you will need to just use cscript to execute the script. If you execute under 64bit you will need to run cscript from %windir%\syswow64\cscript.exe (since the MailEnable COM objects are 32bit only).

You will also need to check that this registry key is set:
HKEY_LOCAL_MACHINE\Software\Mail Enable\Mail Enable\Providers\Authentication
Auth Track Events (DWORD with value of 1)

If you change the above-mentioned key, then you will also need to restart any MailEnable services that authenticate (such as POP, IMAP, SMTP). It will only start recording login events from when you enable the key.
In the unlikely event that you notice that there are any problems occuring as a result of enabling that key, just set the registry key to zero to disable the logging.
Regards, Andrew

mwhatley
Posts: 19
Joined: Tue May 02, 2006 2:57 pm

Re: Last Login Info

Post by mwhatley » Wed Nov 17, 2010 10:04 pm

Did all that. Now where do I find the information?

mwhatley
Posts: 19
Joined: Tue May 02, 2006 2:57 pm

Re: Last Login Info

Post by mwhatley » Wed Dec 01, 2010 7:01 pm

I have completed the setup of the vbs so where do I get the last login info at?

Brett Rowbotham
Posts: 535
Joined: Mon Nov 03, 2003 7:48 am
Location: Cape Town

Re: Last Login Info

Post by Brett Rowbotham » Thu Dec 02, 2010 11:10 am

I assume you are having a problem getting the output of the script.

From a command prompt run the script like this:

Code: Select all

cscript LastLoginTime.vbs
A list containing postoffice name, user name and last login date/time will be echoed to stdout (the command shell screen) for all postoffices and each user in a postoffice. You can redirect the output to a file, if you wish, by running the script like this:

Code: Select all

cscript LastLoginTime.vbs > LoginTimes.lst
Alternatively, run the script like this:

Code: Select all

wscript LastLoginTime.vbs
and the same info will be presented as a series of message boxes, 1 for each user. Be aware that if you have lots of postoffices and/or lots of users you could spend a long time clicking the Ok button to get the next user's info.

I hope I haven't got the wrong end of the stick and that this will help.

Regards,
Brett

trusnock
Posts: 132
Joined: Tue Jan 31, 2006 8:42 pm

Re: Last Login Info

Post by trusnock » Wed Mar 21, 2012 3:55 am

Hello,
I installed this script and it appears to work, thank you! I'm now wondering how literaly we can interpret this date. Does it get updated regardless of how the user accessed their account (POP3, IMAP, Webmail, SMTP-AUTH)? Are there any other actions that might falsely change this date and lead us to think a user logged in when they didn't really? (for instance, changing their password or other account settings? Disabling/enabling their account?)

I just want to know how much faith we should put in the date returned by the script.

Thanks,
-Tom R.

COSAdmin
Posts: 1
Joined: Thu Feb 21, 2019 3:51 pm

Re: Last Login Info

Post by COSAdmin » Thu Feb 21, 2019 3:55 pm

I hate to revive this old thread. I am running ME Professional v10.16 and I cannot get the registry entry to work properly. I have tried to set it both in the SysWOW64 and normal sections, just to make sure it would be read, but it isn't creating the time stamp in the <mailbox>.sys file. (Restarted server multiple times...)

Any help would be greatly appreciated. I really wish that this would just show up in the management console, it would make managing hundreds of accounts in a single post office much easier.

Dan

virmix
Posts: 38
Joined: Tue Nov 10, 2015 12:12 am

Re: Last Login Info

Post by virmix » Mon Apr 08, 2019 8:44 am

MailEnable wrote:This should allow you to derive the last login time: http://www.mailenable.com/developers/LastLoginTime.zip

To run you will need to just use cscript to execute the script. If you execute under 64bit you will need to run cscript from %windir%\syswow64\cscript.exe (since the MailEnable COM objects are 32bit only).

You will also need to check that this registry key is set:
HKEY_LOCAL_MACHINE\Software\Mail Enable\Mail Enable\Providers\Authentication
Auth Track Events (DWORD with value of 1)

If you change the above-mentioned key, then you will also need to restart any MailEnable services that authenticate (such as POP, IMAP, SMTP). It will only start recording login events from when you enable the key.
In the unlikely event that you notice that there are any problems occuring as a result of enabling that key, just set the registry key to zero to disable the logging.
In version 10 not work.
I create a software : https://www.mailenable.com/forum/viewto ... =8&t=42849

Post Reply