From owner-freebsd-questions Sun Feb 16 7:14:20 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 9F6C037B401 for ; Sun, 16 Feb 2003 07:14:18 -0800 (PST) Received: from pop018.verizon.net (pop018pub.verizon.net [206.46.170.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 986E143F93 for ; Sun, 16 Feb 2003 07:14:17 -0800 (PST) (envelope-from cswiger@mac.com) Received: from mac.com ([129.44.41.173]) by pop018.verizon.net (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with ESMTP id <20030216151416.RDT1680.pop018.verizon.net@mac.com>; Sun, 16 Feb 2003 09:14:16 -0600 Message-ID: <3E4FAAC5.5050806@mac.com> Date: Sun, 16 Feb 2003 10:14:13 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Cc: "Jack L. Stone" Subject: Re: Setting proper From host in Sendmail References: <3.0.5.32.20030216090543.02216038@sage-one.net> In-Reply-To: <3.0.5.32.20030216090543.02216038@sage-one.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop018.verizon.net from [129.44.41.173] at Sun, 16 Feb 2003 09:14:16 -0600 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 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 -Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message