----- Original Message -----
From: "Pierre Stoll" <<EMAIL: PROTECTED>>
To: <<EMAIL: PROTECTED>>
Sent: Thursday, May 17, 2001 4:13 PM
Subject: Re: Re: Virtual Subhosts and SM
> Hm - the FAQ says "search the mailinglist" and I did so, but after
> spending hours reading it i have no functional solution for
> SM 1.1.1
> I think the easiest way is to force to users to login with
> <EMAIL: PROTECTED> and password.
> So all SM must do is to look at "@theirdomain.com" and use it
> when sending a mail.
> I am sure anybody worked this out (I am sorry for not knowing
> how to do this in PHP, because I am new to it :-)
> So please let me know if there is a easy solution for this.
> Many thanks,
As a last ressource here's something to play with that might help...but it
IS kinda platform specific, although it can be adapted.
It is a spin-off of the login-alias proposed last week which I have adapted
for my own use.
I use sendmail, so I read aliases directly from /etc/mail/virtusertable.
If you don't use sendmail you can point it to some other file which you
could even create by hand. The format is one user ber line, two columns,
the first column is the alias and the second the real userid.
The second parameter which you might consider is FULL_ALIASING, when set to
true it will only match with full aliases whereas when false it will use
only the portion before the @domain for the search.
It's my first time working PHP so comments and suggestions are welcome.
Thanks to Jay Guerette for creating the first login_alias for me which I
used as platform for my version.
NOTE : this plugin should not affect normal operation of squirrelmail login
in with a real system userid. I do not have multiple server or workstation
environements to test on so try it at you own risk ! :)