From owner-freebsd-doc Wed Jul 10 07:47:44 1996 Return-Path: owner-doc Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA15483 for doc-outgoing; Wed, 10 Jul 1996 07:47:44 -0700 (PDT) Received: from atena.eurocontrol.fr (atena.uneec.eurocontrol.fr [147.196.69.10]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA15476; Wed, 10 Jul 1996 07:47:39 -0700 (PDT) Received: by atena.eurocontrol.fr; (5.65v3.2/1.3/10May95) id AA11279; Wed, 10 Jul 1996 16:47:37 +0200 Received: from mozart.eurocontrol.fr by eurocontrol.fr with ESMTP (1.37.109.16/16.2) id AA136579828; Wed, 10 Jul 1996 16:43:48 +0200 Message-Id: <199607101443.AA136579828@euro.eurocontrol.fr> Received: by mozart.eurocontrol.fr (1.37.109.16/16.2) id AA094599827; Wed, 10 Jul 1996 16:43:47 +0200 From: Ollivier Robert Subject: Re: Santiago Zapata: mx records & sendmail To: gpalmer@freebsd.org (Gary Palmer) Date: Wed, 10 Jul 1996 16:43:47 +0200 (METDST) Cc: doc@freebsd.org In-Reply-To: <29560.836957828@palmer.demon.co.uk> from Gary Palmer at "Jul 10, 96 01:17:08 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-doc@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to Gary Palmer: > Someone want to add an appropriate question/answer for this to the > FAQ? It's getting to be a VERY FAQ, and is definate material for the > FAQ, even after we get the mail handbook section written... > > Thanks > > Gary > ------- Forwarded Message > > Date: Tue, 09 Jul 1996 17:56:05 -0600 > From: szapata@data.net.mx (Santiago Zapata) > To: freebsd-isp@FreeBSD.org > Subject: mx records & sendmail > > Hi: > > I am trying to setup a DNS & mail server. I would like to have e-mail > addresses like: name@my_domain. > Here we go (no time to SGMLify it sorry): Q: I want to configure my sendmail to emit only user@domain.name but it keeps bombing with a "MX points back to myself" error. What can I do ? A: To send and receive mail with only the domain part of an address, you'll need to do this: - use MASQUERADE_AS(domain.name) in the whatever.mc file you've written in order to change all outgoing mail messages, - make the MX record for the domain point to the mail server domain.name. IN MX 10 mailhost.domain.name. - insert the following in the whatever.mc file FEATURE(use_cw_file) Using this feature is easier than just put domain.name in Cw because you'll not need to re-m4 the file each time you add a new domain. - create a file named by defult /etc/sendmail.cw and add the following: domain.name in it. "domain.name" is now a "local" address. -- Ollivier ROBERT -=- Eurocontrol EEC/TIS -=- Ollivier.Robert@eurocontrol.fr