On Friday 21 February 2003 13:58, Kurt Bigler wrote:
> on 2/21/03 10:07 AM, Jesse Guardiani <[EMAIL PROTECTED]> wrote:
> > On Friday 21 February 2003 11:55, Dale wrote:

<snip>

>
> I would appreciate it if you could comment on whether your solution based
> on IP etc will make it unnecessary to do what I was suggesting in my
> original response to this thread.  Although I currently use vpopmail, I
> would prefer a solution that does not depend on vpopmail.  I would
> definitely like the solution to be able to provide a _default_ rather than
> a fixed domain, so that other domains can be typed or selected from a popup
> if desired.

As I mentioned in the original post, vpopmail users can set the VPOPMAIL_DOMAIN
environment variable from apache to facilitate transparent domain hard-coding per
host. However, this method only applies to vpopmail users, and doesn't allow for
a "default" as you mention above.

The method I am working on (mostly in my head right now) will consist of a comma
or colon delimited flat file, with one IP:DOMAIN pair per line, as in the example
below:

IP1:DOMAIN1
IP2:DOMAIN2
etc...

I will read the IP from the SERVER_ADDR CGI environment variable (set by apache),
and compare this IP to the flat file above.

I _COULD_ just do a reverse DNS lookup, but this would be undesirable, since not
every domain has proper reverse DNS available. And it's restrictive. I dislike
restrictive programming.

I think I can implement the next step in a two part conditional:

1.) If the user is using the 'logindomainlist' file, we will simply default the
    list to the DOMAIN field of the matching IP:DOMAIN record in the IP lookup
    flat file.

2.) If the user isn't using the 'logindomainlist' file, we will create a
    'logindomain' hidden field on the login.html page with a value of DOMAIN
    from the IP lookup flat file.

All of this will make IP-DOMAIN lookups usable for non vpopmail users. A number
of improvements can be made in the future, such as CDB lookups and such, but this
is beyond the scope of what I'd like to implement in the near future.

I'd also like to FIX vpopmail IP-alias domain capability in sqwebmail at the same
time. Vpopmail _SHOULD_ be capable of automatic IP-aliasing (if enabled in vpopmail
source and with 'vipmap') by only setting the TCPLOCALIP environment variable
equal to SERVER_ADDR in the auth module, but I can't get it to fly.

More debugging I guess.

Anyway, that's basically what I plan to do. Shouldn't be too hard to implement.

What do you think Sam? Sound decent? 

I have some time today, and hopefully over the weekend, to code. I've already
promised my users that I'll get IP-alias functionality working within a month
(two weeks ago), so I'm pretty commited to getting this done soon.

Any thoughts/input would be welcome.

Jesse


>
> Thanks,
> Kurt Bigler

-- 
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.



Reply via email to