On Wednesday 22 January 2003 20:45, Tim Legant wrote: > Jesse Guardiani <[EMAIL PROTECTED]> writes:
<snip snip> > *I* don't care, but if you want VPopMail authentication to work for > IP-based domains, you need to care!! :) The vchkpw program won't > authenticate IP-based domains properly unless that variable is set. > > When vchkpw gets called from qmail-popup, $TCPLOCALIP has already been > set. This is true whether a client connects directly to the POP3 Hmmm... You're right. It does use $TCPLOCALIP. I thought they'd do something fancy and pass the IP address from the authvchkpw authentication modules right down to vpopmail itself, but it appears that they've hacked it to simply use $TCPLOCALIP, which works great for IMAP/POP3, since it gets called from tcpserver, but bad for webmail, since it doesn't. That explains a lot. :) <snip > > > > 2) Create an IP -> IP mapping file in ~vpopmail/.tmda/ipauthmap. It > > > would look something like this: > > > > > > xxx.xxx.xxx.1:nnn.nnn.nnn.21 > > > xxx.xxx.xxx.2:nnn.nnn.nnn.22 > > > ... So we're agreed to use a file like the above? Can you think of any advantages to using a hash database, like a .cdb, instead? Does python include libraries to access such databases? I suppose the default if an IP isn't found would be to use the localhost? > > > > I like that idea, but we could possibly take this a step further. <snip snip snip> > > Or, maybe we should just use the flat file and forget SQL and external > > script hooks, requiring the user to write a wrapper to 'vipmap' that > > would sync the VPopMail IP table with the tmda-ofmipd IP flat file? Or > > even possibly include a such wrapper in the distribution? > > I think providing a useful script to convert 'vipmap' data to our > format would be the best solution. That way, we can use the same flat > file for both VDMs. The script could be called from any other script > that the mail admin cares to write and could also be called on its own > to create the 'ipauthmap' file the first time around. Wanna take a > crack at it? Sure. No problem. I'll write a fancy one in Perl. In the mean time, this works, but it uses a temp file: ------------------------------------------------------ #!/bin/sh VIPMAP_PATH="/usr/local/vpopmail/bin/vipmap" rm tmpfile $VIPMAP_PATH | cut -f "1" -d " " > tmpfile paste -d ":" tmpfile tmpfile ------------------------------------------------------ > > > Tim > _________________________________________________ > tmda-workers mailing list ([EMAIL PROTECTED]) > http://tmda.net/lists/listinfo/tmda-workers -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net We are actively looking for companies that do a lot of long distance faxing and want to cut their long distance bill by up to 50%. Contact [EMAIL PROTECTED] for more info. _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
