RE: [vchkpw] vpopmail + courier-imap + mysql relay problem
Great, you can send me the patched file and I will recompile and try it out =) Thanks for the quick response too. One other thing I don't understand though is, I have 2 mail servers one is on linux, one is FreeBSD, on the BSD machine IMAP relay works, even though it still lists imap in the last auth table. Jason -Original Message- From: Jason Smith [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 29, 2002 9:38 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [vchkpw] vpopmail + courier-imap + mysql relay problem > > 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". Ok..I have patched my preauthvchkpw.c to call vset_lastauth() with the actual remote IP instead of "service". Now the remote IP is successfully being logged to my lastauth table (except in the case of webmail logins, where 127.0.0.1 is logged - naturally). I can send the modified preauthvchkpw.c since I don't know how to write a patch file. Thanks for bringing this up on the list. I have been wanting to implement this for awhile, just couldn't remember to do it.
RE: [vchkpw] vpopmail + courier-imap + mysql relay problem
> > 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". Ok..I have patched my preauthvchkpw.c to call vset_lastauth() with the actual remote IP instead of "service". Now the remote IP is successfully being logged to my lastauth table (except in the case of webmail logins, where 127.0.0.1 is logged - naturally). I can send the modified preauthvchkpw.c since I don't know how to write a patch file. Thanks for bringing this up on the list. I have been wanting to implement this for awhile, just couldn't remember to do it.
RE: [vchkpw] vpopmail + courier-imap + mysql relay problem
> 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".
RE: [vchkpw] vpopmail + courier-imap + mysql relay problem
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)?
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)?