Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-04-2009, 11:24 PM   #1
Registered: Sep 2007
Posts: 61

Rep: Reputation: 15
Checking Last time a user checked their mail? (Postfix)


Im trying to figure out the last time a user had checked their email so I can weed out the inactive accounts.

I tried checking the /var/mail/*account* file on an account but wasnt able to see any sort of timestamp.

Im using postfix.

Any suggestions would be greatly appreciated !
Old 06-04-2009, 11:38 PM   #2
Registered: Sep 2007
Posts: 61

Original Poster
Rep: Reputation: 15
quick update:

I just used the following to grab all the logins in var/log/maillog , but not sure if this is correct or not
grep "imap-login: Login:" maillog
Old 06-05-2009, 12:08 AM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Depends a bit on how long you keeps your logs for.
Old 06-06-2009, 02:57 AM   #4
Registered: Sep 2007
Posts: 61

Original Poster
Rep: Reputation: 15
Yeah sadly it seemed to be only about 7 no luck
Old 02-28-2019, 08:32 AM   #5
LQ Newbie
Registered: Feb 2019
Posts: 1

Rep: Reputation: Disabled
Track last user authentication (smtpd/submission)

Recently i made a daemon in python to track last user authentication when he send an email ( ports 465 and 587 ), ( see for yourselves ).
But if you want to track pop3/imap you may user post-login function from dovecot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Me Please! I'm receiving mail from Postfix with a wrong time... DnDonna Linux - Newbie 1 08-05-2008 12:37 PM
how to forward mail to postfix virtual user justkeny2k Linux - Networking 7 12-22-2006 12:43 AM
prevent user from sending mail in postfix onyangoliech Linux - Networking 2 12-15-2006 07:37 AM
Postfix unable to deliver mail because user@virtualdomain becomes user@hostname azrael808 Linux - Networking 0 04-29-2006 12:35 PM
mail to local user using Postfix hct224 Linux - Newbie 0 03-16-2004 08:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration