From: Paul L. <pa...@sq...> - 2006-09-07 10:00:06
|
On 1/31/06, Miolinux <mio...@li...> wrote: > hi all, > > i don't know if this is a bug or my configuration is wrong, however > let's describe the problem: > > i got 3 domains, first.example second.example and third.example that is > an alias of second.example. > > my user/assig file is something like this: > > +first.example-:second.example:89:89:/home/vpopmail/domains/first.example:-:: > +second.example-:second.example:89:89:/home/vpopmail/domains/second.example:-:: > +third.example-:second.example:89:89:/home/vpopmail/domains/second.example:-:: > . > > i have set up two virtual host pointing at the squirrelmail source: > webmail.first.example > webmail.second.example > > what i wanted: > > webmail.first.example -> test -> test@first.example OK > webmail.first.example -> test@first.example -> test@first.example OK > webmail.first.example -> test@second.example -> test@second.example OK > webmail.first.example -> test@third.example -> test@second.example NO > > webmail.second.example -> test -> test@second.example OK > webmail.second.example -> test@first.example -> test@first.example OK > webmail.second.example -> test@second.example -> test@second.example OK > webmail.second.example -> test@third.example -> test@second.example NO > > relevant part of my config: > > $useDomainFromVirtDomainsArray = 0; > $pathToQmail = '/var/qmail'; > > After some debugging i found this behaviour: > when webmail.second.example -> test@third.example > what was being processed by unaliasQmailDomainAlias was string > 'second.example' moreover at last is was not used since realname was set > by statement '$realname = $user;'. > > i didn't understand if this behaviour was intentionally or not, or if my > config was wrong (could also be), so i created a global var to force > unalias. Thanks for the patch and the comments, sorry for the late reply. Vlogin is designed to process the URI, and *NOT* the domain given by the user in the login field, since that presents something of a security issue. If you want to override that behavior, turn on $usernameDomainIsHost. I think you don't need any patch, but let me know if I am wrong. -paul |