Hi Alexander,
Thanks for the help. I am using qmail-inject, I think, and am
sending the message through the vanilla PHP mail(); function.
qmail is rewriting the From header and the ReplyTo header that I
specify in the PHP script.
I believe that I deleted all sendmail components when installing
qmail.
I see that the qmail-inject man page lists several switches that can
be used to control its behavior, but I have no clue as to how to set
these on a per message basis, or as a default. After reading the
man page, I added a Sender header to the message. It too, was
rewritten by qmail to preserve the user name, but replaced the
virtual domain name with the server's FQDN.
Here are the headers from my most recent test:
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: pop1815485@mail-10
Received: from samurai.dynamisys-llc.com (dsl-64-32-42-
253.dsl.ez2.net [64.32.42.253] (may be forged))
by mail.9netave.com (8.9.3/8.8.8) with SMTP id XAA43457
for <[EMAIL PROTECTED]>; Sun, 20 Aug 2000 23:51:28 -
0400 (EDT)
Received: (qmail 16495 invoked by uid 99); 21 Aug 2000 03:50:28 -
0000
Date: 21 Aug 2000 03:50:28 -0000
Message-ID: <[EMAIL PROTECTED]
llc.com>
To: [EMAIL PROTECTED]
Subject: the subject
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Sender: [EMAIL PROTECTED]
X-PMFLAGS: 33554560 0 1 P26BC0.CNM
Here is a test of the PHP email system.
******************** End example *****************
In the original message, the From, ReplyTo, and Sender messages
should contain margecares.com, rather than samurai.dynamisys-
llc.com.
Any ideas?
Thanks,
J!M
>
> What are you using to inject messages with, SMTP, the sendmail
> wrapper, or qmail-inject? And what exactly is being rewritten, the
> message from header or the envelope sender?
>
> If you are using SMTP or the sendmail wrapper, consider calling
> /var/qmail/bin/qmail-inject directly. As discussed in man
> qmail-inject, it will normally preserve the message from header and
> set the envelope sender to what is in the return-path header.
>