Jesse Guardiani <[EMAIL PROTECTED]> writes: > On Wednesday 22 January 2003 20:45, Tim Legant wrote: > > Jesse Guardiani <[EMAIL PROTECTED]> writes: > > > > > 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?
Well, it occurs to me that tmda-ofmipd allows you to specify a port to the -R flag, if you have one of the authentication server types on a non-standard port. This file should probably support that, too. Say something like 'IP1:IP2:port'. No port simply uses the default. > Can you think of any advantages to using a hash database, like a .cdb, instead? > Does python include libraries to access such databases? Python doesn't come with CDB support, although it's available from a third party. Jason has generally preferred to use only base Python modules for the TMDA programs, so that they work with a standard Python installation. We use CDB as an option in the filter file, which users can explore when they're ready and after they download the module code and build it. I don't think there would be any advantage unless you had more than a couple of hundred IP aliases on the one machine. Especially because the lookup would only be done once per authentication. If it were done 500 or 1000 times, it would be worth optimizing. > I suppose the default if an IP isn't found would be to use the localhost? I hadn't thought about this at all, but that makes perfect sense to me. Good catch. > > 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. Cool! Tim _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
