From owner-freebsd-questions Wed Aug 15 5:50:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rannoch.demon.co.uk (rannoch.demon.co.uk [158.152.110.117]) by hub.freebsd.org (Postfix) with ESMTP id E0D3F37B409 for ; Wed, 15 Aug 2001 05:50:21 -0700 (PDT) (envelope-from apbran@rannoch.demon.co.uk) Received: (from apb@localhost) by rannoch.demon.co.uk (8.11.4/8.10.1) id f7FCnUT05573; Wed, 15 Aug 2001 13:49:30 +0100 (BST) Date: Wed, 15 Aug 2001 13:49:29 +0100 From: Paul Branston To: "Patrick O'Reilly" Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail Help - anyone? Message-ID: <20010815134929.B5360@rannoch.demon.co.uk> References: <000001c12581$b0b81ef0$b50d030a@patrick> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000001c12581$b0b81ef0$b50d030a@patrick>; from patrick@mip.co.za on Wed, Aug 15, 2001 at 01:59:07PM +0200 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 Wed, Aug 15, 2001 at 01:59:07PM +0200, Patrick O'Reilly wrote: > If someone can help I'd really appreciate it. I am battling to make head or > tail of the documentation on the sendmail website! > > I have a server on FreeBSD 4.2 running sendmail - and all is well. > > Now, a bunch of users are moving onto the same LAN. I want to add them on > the same sendmail server, but they belong to a different company, and hence > have a different internet domain. > > I can set all the MX records incoming OK, and set local-host-names so that > the server will accept the incoming emails. > > BUT: How do I ensure that outbound emails correctly show a source address > for the respective different domains? > > In other words, some emails will be: > From: joe-bloggs@origdomain.com you need a genericstable to re-write the outgoing email addresses so that local user joe becomes joe@domain.com e.g. joe joe@domain.com (if you include a left-hand-side address with a domain part you need that domain in a genericsdomain file) and for incoming mail use a virtusertable to map joe@domain.com onto the local box where the mail is to be delivered. create a sendmail.cf file with support for these features, masquerade_envelope virtusertable genericstable > > While other emails will be: > From: an-other@newdomain.com > > and yet both the user accounts (joe-bloggs and an-other) are physically > resident on the same mail server. As I understand things, sendmail will > show all source addresses from one common domain, the domain of the mail > host. > > Thanks in advance, > Patrick. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- /* * Paul Branston * Unix Consultant * Leeds office: 0113 2635584 * Mobile: 07860 447931 */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message