On Thu, Aug 14, 2003 at 09:09:09AM +0100, [EMAIL PROTECTED] wrote:
[a HTML-scrambled E-mail]
> I have an account on my qmail system, under a vpopmail install. The
> account address is [EMAIL PROTECTED] The comment (or
> real name) under vpopmail/qmail admin is "Test User"
>
> So in theory people should recieve mail from "Test User" whos address
> is [EMAIL PROTECTED]
>
> When I open sqwebmail to send a mail, I see the "from" field populated
> with [EMAIL PROTECTED] so users recieve mails from
> [EMAIL PROTECTED] which look bad according to my client,
> so I change the from field to be "Test User" and send a new mail
> expecting to see the mail from "Test User", instead I get a mail from
> "Test [EMAIL PROTECTED]" so it uses the from field as the
> email address ???
That is exactly what the From: field is for. It replaces the From: header on
the outgoing message. In my case if I log in to a system as [EMAIL PROTECTED] I
can change the From: header to [EMAIL PROTECTED], because that's where I
want it to appear to come from (and replies to be sent)
If you don't want users to have this ability, you can create a file
'nochangingfrom' which disables it.
> Can anyone explain why the from field is behaving this way
It's the correct, designed behaviour
> , and why
> sqwebmail is not using the "comment" as the from field and should be
> using the email address as the reply to address.
It sounds like a vpopmail problem to me. It should build the default From:
header as
From: comment <e-mail address>
See function login_fromhdr in sqwebmail/auth.c. It picks up the comment from
environment variable AUTHFULLNAME set by the authentication module. So I
guess that vpopmail isn't returning it.
If you want to start debugging, try putting some fprintf(stderr,...) entries
in authlib/preauthvchkpw.c, especially around the part where it uses the
'pw_gecos' field.
I don't have vpopmail installed, so can't help you any further.
Regards,
Brian.