> The Connections are direct from their machines.
> 
> -----Original Message-----
> From: Jason Smith [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, December 29, 2002 5:38 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [vchkpw] vpopmail + courier-imap + mysql relay problem
> 
> > I am having problems with Imap client IP's not getting added to the
> > relay table, pop3 clients get added fine.
> > It says imap in the lastauth table for the user, but does not add
> their
> > IP
> >  
> > What do I need to do to correct this problem?
> >  
> > Please help
> >  
> > Jason
> > Diamond International
> 
> 
> Are your IMAP connections direct from the client machines, or via a
> webmail 
> interface (such as squirrelmail)? 
> 

>From what I can tell with my very limited C knowledge, line 62 of 
authlib/preauthvchkpw.c is specifying that "imap" be logged into the 
lastauth table:

Here is a call to the vset_lastauth function from preauthvchkpw.c, 
passing "service" which would be "imap" in this case. 

#ifdef ENABLE_AUTH_LOGGING
      vset_lastauth(User, Domain, service);
#endif

Whereas, vpopmail gets the value for "ipaddr" from the environment variable 
TCPREMOTEIP and uses this in place of "service" when logging connections.

Maybe there is a way to modify preauthvchkpw.c and recompile courier-imap 
to call vset_lastauth with the actual remote IP address vs. the "service".

Reply via email to