On Monday 18 August 2003 13:25, Flash wrote:
> Greetings all,
>
> setup is ONLY qmail, authenticating against the system user database, and
> sqwebmail (with Apache obviously).  Virtual domains (IP based) but no
> vpopmail or similar.
>
> Ideally, a user would go to webmail.<domain.tld>, login using only user
> name (the @ modifier in Jesse's patch makes for a nice display), but
> <domain.tld> is _not_ passed to login, which is against system db.  Yet the
> From: address drops to <user>@<domain.tld>, again using logindomainlist
> file.

OK. Let me see if I get this straight:

You're using a logindomainlist rule like this:

*:webmail.*:@

right? (which rewrites 'webmail.*' to just '*' for the mail (or login) domain)

You like the fact that this displays '@<domain.tld>' on the login page, but
you DON'T want it to actually pass '<domain.tld>' as the login domain. You
just want it to pass the user part of the email address for authentication.

Is that correct, or am I missing something?


>
> When this machine had only one virtual domain using sqwebmail, setting
> hostname worked fine.  No longer.

hostname just controls the return address in composed message, right? You'd
have to log in with a fully qualified email address in order to set the hostname
per domain, or use an authmechanism that supports setting the hostname
per domain based on IP or something (I don't know of any that do this. That's
why I wrote the logindomainlist code.) Perhaps your best option is to change
auth mechanisms to something like authvchkpw.


>  I have read everything I can find on
> this including all the emails back in Feb-Mar03 pertaining to this.  I
> would like to avoid digging into logindomainlist.c if I can, but that may
> be the best option.

Well, if you log in with a fully qualified email address for the userid, then your
return address will probably be set properly. If you don't, then it probably
depends on your auth mechanism to set that field correctly for you.

I get the feeling that you may get better results hacking up the auth modules.


>
> I have not completely investigated HTTP_HOST nor the @ hidden field as they
> may or may not apply to this scenario.
>
> Another option (I think) would be to recompile for each
> webmail.<domain.tld> setting --prefix=/<domainroot>/sqwebmail/.  Obviously
> not nearly as space efficient or elegant, but functionality is the highest
> priority at this point.
>
> And yes, I am investigating which virtual mail manager for the system
> overhaul down the line.

I highly recommend vpopmail. VMailMgr is much better written (from what I
hear), but vpopmail has more options and probably has a larger user base.

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



Reply via email to