Visit Jeremy's Blog.
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-05-2009, 12:24 AM   #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-05-2009, 12:38 AM   #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, 01: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, 03:57 AM   #4
Registered: Sep 2007
Posts: 61

Original Poster
Rep: Reputation: 15
Yeah sadly it seemed to be only about 7 no luck


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 01:37 PM
how to forward mail to postfix virtual user justkeny2k Linux - Networking 7 12-22-2006 01:43 AM
prevent user from sending mail in postfix onyangoliech Linux - Networking 2 12-15-2006 08:37 AM
Postfix unable to deliver mail because user@virtualdomain becomes user@hostname azrael808 Linux - Networking 0 04-29-2006 01:35 PM
mail to local user using Postfix hct224 Linux - Newbie 0 03-16-2004 09:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration