On Tue, 2007-02-27 at 14:48 -0600, bhayden@umn.edu wrote:
Thanks for that. A more specific question: is there a way to have imap/pop-login processes log the PID of the child imap/pop process? This would be for the purpose of connecting a specific authentication with its own session activity in the case of multiple logins by a single user.
No, that information doesn't get transferred. And imap-login actually never even knows the PID, so it would have to be done the other way: imap would have to log imap-login's PID.
If you really want that, you could modify src/master/login-process.c auth_master_callback(). The login process PID is in request->process->pid. Pass it to create_mail_process() and log it there or pass to the mail process or something.