[imp] (no subject)
Chris Meisinger
chrism at servercentral.net
Mon Jun 20 13:32:06 PDT 2005
To be honest, I'm not completely sure how to go about doing this. In a
nutshell, I'd like to be able to use the servername declared @ login (or
domain name) to be used as the from address if the user only enters a
username and not a full email address at login.
I'm not a PHP coder, although I can stumble my way through it. I'm at
this juncture because I upgraded a legacy horde/IMP server to current
and it appears this action has changed. (I'm not sure if there was
custom code applied to the old IMP server so I don't even know if that
was default behavior)
Thank you VERY much for your help, it's greatly appreciated.
Chris
-----Original Message-----
From: Andrew Morgan [mailto:morgan at orst.edu]
Sent: Monday, June 20, 2005 12:00 PM
To: Chris Meisinger
Cc: imp at lists.horde.org
Subject: Re: [imp] (no subject)
On Mon, 20 Jun 2005, Chris Meisinger wrote:
> Hi,
>
> I've spent a decent amount of time going through the mailing list
> backlogs, the FAQ and just about any other resource I can find and I
> haven't found an answer for this just yet.
>
> Currently when a user logs into IMP, if IMP is unable to expand their
> username=>full email addy, It appends the maildomain (mail_domain)
onto
> the end of their username, in this case, Example.com. I've removed
> example.com from the default mail_domain setting, but now it's
appending
> what appears to be a null value, which ends up in most mail-daemons
> bouncing the email since it's just 'username@' and no FQDN.
>
> I've seen hooks for pulling the domain name from the HTTP_HOST
variable,
> but that's not applicable for this server as everyone hits the same
URL.
> Now, short of telling everyone to use the full email address for their
> login (big note on the login page saying this now, heh), How can I
take
> the Server variable they use when logging in and append that to the
> username if IMP can't expand upon it?
>
> If I've missed a post or something similar with this info, please
point
> me in the right direction.
I think you are looking for the "from_addr" hook. In it, you can set
the
email address of the user to whatever you want, from any source you can
code it for.
Andy
More information about the imp
mailing list