On Wed, Dec 13, 2000 at 04:40:26PM +0000, Peter Woods wrote:
> I have a file (/tmp/message) that looks like:
>
> To: [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> Subject: Test
> This is a test.
>
> For some odd reason that I can't explain the
> from address keeps getting rewritten to
> [EMAIL PROTECTED] (which was
> the old hostname).
>
> cat /tmp/message | /var/qmail/bin/qmail-inject -n
>
> shows the proper header info, but the from gets
> rewritten for:
>
> cat /tmp/message | /var/qmail/bin/qmail-inject
>
> My me file contains: advice.domainname.com
> My defaulthost file contains: advice.domainname.com
> My helohost file contains: advice.domainname.com
>
> The hostname is: advice.domainname.com
>
> Am I missing something obvious?
Yes. You haven't shown us that qmail is rewritting that header. At
what point is it rewritten? You need to experiment and catch the email
at each point thru the delivery process and determine at which point
it gets rewritten. Are you sure it's not rewritten after it leaves
qmail?
Regards.