Thanks Troy. Where would I put the code to append that env variable
to the username that they supply. I am looking through the code
right now and I am not having any luck figuring out where to
put it. I don't feel like breaking sqwebmail and qmailadmin today :)
Jeff Jones
On Wed, 18 Oct 2000, Troy Settle wrote:
>
> man 3 getenv
>
>
> --
> Troy Settle
> Pulaski Networks
> 540.994.4254
>
> It's always a long day, 86400 doesn't fit into a short
>
>
>
> > -----Original Message-----
> > From: Jeff Jones [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 18, 2000 3:12 PM
> > To: Troy Settle
> > Cc: Ken Jones; qmailadmin list
> > Subject: RE: domain showing up at login
> >
> >
> > Hello all. Okay, what I did here is actually make an extra
> > environment variable for each of the virtual hosts. The
> > only reason I did that is to just automically get the
> > "www" out of the HTTP_HOST variable. I could parse it
> > out if it is there, but it was just as easy to do it
> > this way.
> >
> > Could someone maybe provide some sample code to have
> > qmailadmin and sqwebmail just pick that value out of
> > the new variable for login purposes? The new env variable
> > I made was MAIL_HOST.
> >
> > Thanks again,
> >
> > Jeff Jones
> >
> > On Wed, 18 Oct 2000, Troy Settle wrote:
> >
> > >
> > > Ken,
> > >
> > > I don't know what's involved (I'm not very good with C), but as an
> > > experiment, write a little routine to dump the entire environment to the
> > > browser (similar to what phpinfo() does in php3/4). You'll
> > likely see more
> > > than one variable that you might be able to make use of.
> > >
> > > In short, yes. If you have multiple virtual hosts bound to a
> > single IP, you
> > > should be able to use the HTTP_HOST env var to pre-populate the
> > domain field
> > > (might need to work with it though... the domain might be
> > foo.com while the
> > > host is www.foo.com or mail.foo.com).
> > >
> > > Enjoy,
> > >
> > > --
> > > Troy Settle
> > > Pulaski Networks
> > > 540.994.4254
> > >
> > > It's always a long day, 86400 doesn't fit into a short
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: kbo [mailto:kbo]On Behalf Of Ken Jones
> > > > Sent: Wednesday, October 18, 2000 12:13 PM
> > > > To: Troy Settle
> > > > Cc: Jeff Jones; qmailadmin list
> > > > Subject: Re: domain showing up at login
> > > >
> > > >
> > > > Troy Settle wrote:
> > > > >
> > > > > Yep. Your httpd should be setting an environment variable
> > HTTP_HOST,
> > > > > which can be used for this purpose.
> > > >
> > > > Interesting idea. So you are saying, in the <VirtualHost blah blah>
> > > > you put in the HTTP_HOST variable. What is the syntax for setting
> > > > that in the httpd.conf file?
> > > >
> > > > I could update qmailadmin to check for that environment variable.
> > > > And if it's set, use that.
> > > >
> > > > >
> > > > > While were making requests to make it easier for users to
> > log in, I'd
> > > > > really like to see cookies implemented to save usernames
> > and possibly
> > > > > passwords. I know the arguments about security and privacy, but I
> > > > > really don't think it would be that big of a deal
> > considering that the
> > > > > users who would save their passwords are those who can't
> > remember that
> > > > > it's their dog's name.
> > > >
> > > > I think qmailadmin is too far along, development wise, to re-do it to
> > > > use cookies.
> > > >
> > > > Ken Jones
> > > >
> > > > >
> > > > > --
> > > > > Troy Settle
> > > > > Pulaski Networks
> > > > > 540.994.4254
> > > > >
> > > > > ** -----Original Message-----
> > > > > ** From: Jeff Jones [mailto:[EMAIL PROTECTED]]
> > > > > ** Sent: Tuesday, October 17, 2000 11:36 PM
> > > > > ** To: qmailadmin list
> > > > > ** Subject: domain showing up at login
> > > > > **
> > > > > **
> > > > > ** I have a question that concerns both qmailadmin and sqwebmail.
> > > > > **
> > > > > ** Little background info first. I am hosting many virtual
> > > > > ** domains/websites and I have configured the web server to
> > > > > ** allow the user to get to their web mail (sqwebmail) with
> > > > > ** their domain name followed my "mail". For instance:
> > > > > **
> > > > > ** http://www.mydomain.com/mail
> > > > > **
> > > > > ** I have also done the same with qmailadmin where the user
> > > > > ** would enter in the above except substituting "mail" with
> > > > > ** "mailadmin".
> > > > > **
> > > > > ** Is there any way to have qmailadmin and sqwebmail pick
> > > > > ** up those domain names and store it for the login so the
> > > > > ** user doesn't have to enter "[EMAIL PROTECTED]"
> > > > > ** for the login userid and instead just enter in
> > > > > ** "postmaster"?
> > > > > **
> > > > > **
> > > > > ** Thanks in advance,
> > > > > **
> > > > > ** Jeff Jones
> > > > > **
> > > > > **
> > > >
> > > >
> > >
> > >
> >
> >
>
>