From owner-freebsd-questions Sun Feb 16 8:44:44 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F82137B401 for ; Sun, 16 Feb 2003 08:44:42 -0800 (PST) Received: from sage-american.com (adsl-65-71-135-139.dsl.crchtx.swbell.net [65.71.135.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7121643F75 for ; Sun, 16 Feb 2003 08:44:38 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea.sage-american [192.168.0.3]) by sage-american.com (8.12.6/8.12.6) with SMTP id h1GGiFFU074175; Sun, 16 Feb 2003 10:44:15 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20030216104416.012b5258@sage-one.net> X-Sender: jackstone@sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 16 Feb 2003 10:44:16 -0600 To: Chuck Swiger , freebsd-questions@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: Setting proper From host in Sendmail In-Reply-To: <3E4FAAC5.5050806@mac.com> References: <3.0.5.32.20030216090543.02216038@sage-one.net> <3.0.5.32.20030216090543.02216038@sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-1.0 required=4.5 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05 version=2.44-sageamerules_v1 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 10:14 AM 2.16.2003 -0500, Chuck Swiger wrote: >Jack L. Stone wrote: >> Pardon me if this is OT, but it is probably an easy question for many on >> this list. >> >> The problem: >> Host on my Internal network sends out formmail replies as FROM >> "www.thehost.com" >> >> QUESTION: >> How can I make it show the replies as being from the sender -- my web forms >> provide for picking up the "From" field. >> >> If I test this on my gateway/router machine, it inserts the right FROM info >> as "sender@somewhere.net" instead of the "www". > >You want formmail-generated mail to go out as ? >Add: > >MASQUERADE_AS(`somewhere.net')dnl > >...to your sendmail.mc (perhaps /etc/mail/freebsd.mc). Other options, >like masquerade_envelope, might also be required, but that's the place >to start.... > >-Chuck > Thanks for the reply, but that is not what I meant. I don't want the FROM to be replaced with the machine's host name, but the FROM field of the customer who fills in his email address in the web form. In other words, the system isn't seeing that field and is replacing with the "www@myhost.com". That's the only way my "vacation" program can send an autoreply to the customer. What you suggest will just send the autoreply back to the machine it came from. Any other thoughts...?? Sorry if this is not clear. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message