[imp] (no subject)

Andrew Morgan morgan at orst.edu
Mon Jun 20 09:59:30 PDT 2005


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