From owner-freebsd-questions Thu Aug 16 1:55: 5 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 B360537B403 for ; Thu, 16 Aug 2001 01:54:55 -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 f7G8rZ013752; Thu, 16 Aug 2001 09:53:35 +0100 (BST) Date: Thu, 16 Aug 2001 09:53:34 +0100 From: Paul Branston To: "Patrick O'Reilly" Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail Help - anyone? Message-ID: <20010816095334.A25455@rannoch.demon.co.uk> References: <000001c12581$b0b81ef0$b50d030a@patrick> <000701c12611$9033d4e0$1401a8c0@tedm.placo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000701c12611$9033d4e0$1401a8c0@tedm.placo.com>; from tedm@toybox.placo.com on Wed, Aug 15, 2001 at 10:09:01PM -0700 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 10:09:01PM -0700, Ted Mittelstaedt wrote: > >-----Original Message----- > >From: owner-freebsd-questions@FreeBSD.ORG > >[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Patrick > >O'Reilly > >Sent: Wednesday, August 15, 2001 4:59 AM > >To: freebsd-questions@FreeBSD.ORG > >Subject: Sendmail Help - anyone? > > > > > >If someone can help I'd really appreciate it. I am battling to make head or > >tail of the documentation on the sendmail website! > > > >BUT: How do I ensure that outbound emails correctly show a source address > >for the respective different domains? > > This depends on how the users are transmitting mail. If they are all local > users running PINE or some such then you use the genericstable method that > Paul said. Otherwise if they are all remote users running a POP3 mail client > such as Eudora then you set the From address in the mail client configuration. yes, good point I was forgetting POP3 users. > > This is why they recommend that you don't turn on masquerading. Hopefully you > haven't.i my fault, I shouldn't have mentioned masquerading really. Once you've setup your maps you can test them like this sendmail -bt (enters rule testing mode, ctrl-D to exit) you then enter the rules numbers with commas to separate followed by the address you want to test. Older versions of sendmail always called ruleset 3 first even if you didn't ask, newer versions don't and will tell you they don't. Try this at the ruletesting prompt. 3,0 fred bloggs ruleset 3 discards the name part and ruleset 0 decides on the type of mailer to use $#, the host to send to $@ and the user $: The other way of testing the maps is at the same prompt do /map virtuser user@local.host or /map generics user To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message