From owner-freebsd-questions Fri Nov 3 18:43:34 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA26613 for questions-outgoing; Fri, 3 Nov 1995 18:43:34 -0800 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA26608 for ; Fri, 3 Nov 1995 18:43:31 -0800 Received: from palmer.demon.co.uk (palmer.demon.co.uk [158.152.50.150]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id SAA01268 for ; Fri, 3 Nov 1995 18:43:04 -0800 Received: from localhost (localhost [127.0.0.1]) by palmer.demon.co.uk (8.6.11/8.6.11) with SMTP id CAA01644 ; Sat, 4 Nov 1995 02:39:55 GMT To: jdl@chromatic.com cc: Robert Gorichanaz , freebsd-questions@freebsd.org Subject: Re: Configuring sendmail In-reply-to: Your message of "Fri, 03 Nov 1995 19:24:12 CST." <199511040124.TAA14353@chrome.jdl.com> Date: Sat, 04 Nov 1995 02:39:52 +0000 Message-ID: <1642.815452792@palmer.demon.co.uk> From: Gary Palmer Sender: owner-questions@freebsd.org Precedence: bulk Jon Loeliger wrote in message ID <199511040124.TAA14353@chrome.jdl.com>: > Apparently, Robert Gorichanaz scribbled: > > Part 2: Here's where it gets tricky. I need to change the From: lines > > and Return Path: lines from > > user@internal-machine-name.domain-name.com > > to > > user@domain-name.com > > This is easy, isn't it? > At least *one* way (not necessarily the best) to do this is to > change the "masquerade" value in /etc/sendmail.cf: > # who I masquerade as (null for no masquerading) ^^^ Oh well. Won't work for re-writing OTHER machines addresses... The simplest way would be to change the DM values on all the internal boxes :-) > DMdomain-name.com > Rude and crude, just edit the /etc/sendmail.cf file straight up. > Do it right, um, cd to somewhere and something, but only after > reading the ORA sendmail book and sacrificing at least *four* > Zen Masters. Yeah. Hacking sendmail.cf re-writing rules is NOT nice. I've done it on a couple of occasions. The ORA sendmail book is ESSENTIAL reading if you want to go that way. Gary