LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   POP3 User login Monitoring (http://www.linuxquestions.org/questions/linux-server-73/pop3-user-login-monitoring-4175452610/)

jamil.isayyed 03-04-2013 04:23 AM

POP3 User login Monitoring
 
Hello all,

i have a debian mail server using dovecot, postfix, roundcube. i need to add a feature to monitor the user login through pop3. i need to get the user name and time.

so any idea about it?, do you know where i can find the authentication code for pop3?

Thanks in advance :)

vishesh 03-05-2013 05:33 AM

Did you enabled auth logging in dovecot

+++++++++++++++
auth_debug=yes
++++++++++++++++

Thanks

jamil.isayyed 03-05-2013 06:09 AM

Yes it is enabled, but i do not need to see it just in the log, for example i need to get the time and use it DB, or Report,...etc.
so for example if there is a way to modify the code on logging in order to execute database query, call a special function...., which will for example update the database with the last login time for the user?

Thanks,
:)

Habitual 03-05-2013 06:18 AM

Quote:

Originally Posted by jamil.isayyed (Post 4905019)
Yes it is enabled, but i do not need to see it just in the log, for example i need to get the time and use it DB, or Report,...etc.
so for example if there is a way to modify the code on logging in order to execute database query, call a special function...., which will for example update the database with the last login time for the user?

Thanks,
:)

maybe you should tell us the log file location, what you searched for there (exact command) and more than "Yes it is enabled"?
Did you enable it?
Did you restart dovecot after editing?
What is enabled upon installation?
What OS Version?
What dovecot version?

wrt:
Quote:

Originally Posted by jamil.isayyed (Post 4905019)
is a way to modify the code on logging in order to execute database query, call a special function...

I suggest de-caf until you can find entries in the logs.

vishesh 03-05-2013 06:20 AM

Every log maintain timestamp by default . For code part, I think you can look into source code of dovecot .

Thanks

jamil.isayyed 03-05-2013 08:44 AM

Anyway Thanks a lot for Replying, i have solved this problem.
@Habitual my problem is not in location of log or types, my question is more pointing for brain storming to find the best solution to monitor pop3 logen or connections.
i have solved this by writing a couple of scripts to monitor the connections, do the job that i need to do and then quit.

So Thanks alot for replying.
BR,
Jamil Isayyed


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