[imp] Virtual domain TIPs
Alonso Landauro Canales
alonso@pcprices.com.pe
Thu, 11 Apr 2002 12:36:57 -0500
Thankyou Jan. Problem solved!
I would put the solution that I ve made on the imp webpage..
Now I heve a another little problem. When I have users over 16
characters the poppassd wont change their password.
It is not working with big users.. I am trying to find where to change
this feature.but no luck till now.
I ve you guys have any idea where to change this...??
Thankyou
Alonso Landauro Canales
==========================
PC Prices S.A.C.
Telf: 4477600
http://www.pcprices.com.pe
LIMA - PERU
====================
-----Mensaje original-----
De: Jan Schneider [mailto:jan@horde.org]
Enviado el: miércoles, 10 de abril de 2002 3:49
Para: imp@lists.horde.org
Asunto: Re: [imp] Virtual domain TIPs
Zitat von "Ing. CIP Alejandro Celi Mariátegui" <alex@linux.org.pe>:
> We want to when the user use http://mail.domain1.com or
> http://mail.domain2.com the server recognize HTTP_HOST and do this:
>
> 1.- User login with for example "alex" and his password in
> http://mail.domain1.com
>
> 2.- The server look the domain and change the login user to
> alex_domain1_com as the real user (like in $conf['hooks']['vinfo'] = =
> 'imp_get_vinfo'), thanks
> Chuck!
>
> 3.- I configured the config example sent by Jim in this email:
> http://marc.theaimsgroup.com/?l=imp&m=101195869916272&w=2
> looks good!
>
> All works fine still now!
>
> The problem is:
>
> When user "alex" (real user alex_domain1_com) compose and email and
> send it to another mailserver, it always arrive using the real account
> user name like this:
>
> alex_domain1_com@domain1.com
>
> I wish I could have a config or php tip for making that the "From
> field" changes to the virtual sender like this
>
> alex@domain1.com
You can do this in the "from" hook. Just strip everything up from the
second last underscore. Or replace the "underscored" HOST_NAME part with
an
empty string.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge http://www.tip4all.de -
Deine private Tippgemeinschaft
--
IMP mailing list: http://horde.org/imp/
Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org