From owner-freebsd-questions Mon Jan 5 17:03:47 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA05552 for questions-outgoing; Mon, 5 Jan 1998 17:03:47 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA05527; Mon, 5 Jan 1998 17:03:34 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id AAA19996; Tue, 6 Jan 1998 00:38:21 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199801060038.AAA19996@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0.1 12/23/97 To: "Jonathan M. Bresler" cc: fbsdlist@federation.addy.com (Cliff Addy), freebsd-questions@freebsd.org Subject: Re: Rewriting the "Received:" header in email In-reply-to: Your message of "Mon, 05 Jan 1998 08:30:45 PST." <199801051630.IAA15528@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 06 Jan 1998 00:38:21 +0000 From: Brian Somers Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [.....] > so, if you have each virtual host use its own /etc/sendmail.cf > file you can replace the "$j" in the "by $j ($v/$Z)" below > by the hostname you want to appear. > for instance "by alphabet.com ($v/$Z)". > (i dont believe that you can redefine $j on the fly, > someone please check sendmail 2nd ed......) [.....] You can, but it's all read at startup, so doing this just confuses things, ie. Djmy.real.name ...... Djmy.pretend.name ...... Djmy.real.name The `j' that sendmail itself figures out is only applicable up until the first `Dj'. I reckon it's best to either hard-code it or use a completely different variable name: D{vj}my.virtual.host ...... "by ${vj} ($v/$Z)" (disclaimer, I'm only on page 103 !) > jmb > -- > Jonathan M. Bresler FreeBSD Core Team, Postmaster jmb@FreeBSD.ORG > FreeBSD--The Power to Serve JMB193 http://www.freebsd.org/ > PGP 2.6.2 Fingerprint: 31 57 41 56 06 C1 40 13 C5 1C E3 E5 DC 62 0E FB -- Brian , , Don't _EVER_ lose your sense of humour....