From owner-freebsd-questions Mon Feb 25 17:43: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ulixes.esc.ac.at (ulixes.esc.ac.at [193.170.216.34]) by hub.freebsd.org (Postfix) with ESMTP id EB14E37B405 for ; Mon, 25 Feb 2002 17:42:57 -0800 (PST) Received: from ulixes.esc.ac.at (localhost.esc.ac.at [127.0.0.1]) by ulixes.esc.ac.at (8.12.2/8.12.2) with ESMTP id g1Q1guWS038910; Tue, 26 Feb 2002 02:42:56 +0100 (CET) (envelope-from flo@ulixes.esc.ac.at) Received: (from flo@localhost) by ulixes.esc.ac.at (8.12.2/8.12.2/Submit) id g1Q1guIZ038909; Tue, 26 Feb 2002 02:42:56 +0100 (CET) (envelope-from flo) Date: Tue, 26 Feb 2002 02:42:56 +0100 From: Florian Nigsch To: Ben Stuyts , freebsd-questions@freebsd.org Subject: Re: sendmail config problem with virtual domain Message-ID: <20020226024256.B38543@nigsch.com> Mail-Followup-To: Florian Nigsch , Ben Stuyts , freebsd-questions@freebsd.org References: <4.3.2.7.2.20020225231649.03926ca0@terminus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4.3.2.7.2.20020225231649.03926ca0@terminus>; from ben@stuyts.nl on Mon, Feb 25, 2002 at 11:33:58PM +0100 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 On Mon, Feb 25, 2002 at 11:33:58PM +0100, Ben Stuyts wrote: > I have a login on this server as ben@domain.com. Let's say the virtual > domain is called virtualdomain.com. > > In the virtusertable is an entry: > ben@virtualdomain.com ben@stuyts.nl > > I send mail from here (at stuyts.nl) as ben@virtualdomain.com to > ben@virtualdomain.com. However, when I receive this mail back at stuyts.nl, > the > From: ben@virtualdomain.com is changed into ben@domain.com. The To: line is > still intact. > > Any idea what I'm doing wrong? > > The sendmail.mc is basically a stock freebsd.mc with the addition of: > > FEATURE(`accept_unqualified_senders') > define(`confDOMAIN_NAME', `host.provider.nl')dnl > FEATURE(genericstable) > GENERICS_DOMAIN(`host.domain.com') > VIRTUSER_DOMAIN(`virtualdomain.com') > > The genericstable is empty. ---end quoted text--- As far as I know you have to use the genericstable feature to rewrite the From headers. Try adding ben ben@virtualdomain.com to your /etc/mail/genericstables. It also took me some time to get the @nigsch.com working with my email address (I also use my domain at another site which primarily gets mail for another domain...). I also use some other "features" like "masquerade_envelope" and "limit_masquerade". flo -- --- Florian Nigsch http://flo.nigsch.com/ PGP key: http://flo.nigsch.com/fnigsch.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message