From owner-freebsd-questions Mon Apr 21 09:01:38 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA26164 for questions-outgoing; Mon, 21 Apr 1997 09:01:38 -0700 (PDT) Received: from ares.isf.rl.af.mil (ARES.ISF.RL.AF.MIL [128.132.64.38]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA26152 for ; Mon, 21 Apr 1997 09:01:33 -0700 (PDT) Received: from ares (ares [128.132.64.38]) by ares.isf.rl.af.mil (8.8.5/8.8.5) with SMTP id MAA01004 for ; Mon, 21 Apr 1997 12:00:10 GMT Date: Mon, 21 Apr 1997 12:00:10 +0000 () From: Rodney C Forbes Reply-To: Rodney C Forbes Subject: Re: Email config problem To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I don't think you need to specify the A record twice. All you should have to do is specify the CNAME record below the SOA. [Top of file] @ IN SOA domain.name root.ns.domain.name. ( 1997033101 ; serial (use YYYYMMDDXX) 3600 ; refresh 3600 ; retry 3600000 ; expire 86400) ; minimum IN CNAME mailhost.domain.name. [rest of file] By all means, correct me if I am wrong. I wouldn't do it this way anyway. I don't think pinging domain.name should return a positive response as it isn't a real host. I do think sending mail to user@domain.name should succeed. To accomplish this, you simply define the mail exchanger. [Top of file] @ IN SOA domain.name root.ns.domain.name. ( 1997033101 ; serial (use YYYYMMDDXX) 3600 ; refresh 3600 ; retry 3600000 ; expire 86400) ; minimum IN MX 10 mailhost.domain.name. [rest of file] No matter which method you use, a small change will be required to either sendmail.cf or sendmail.cw. By default, sendmail will not deliver mail sent this way. You will need to tell sendmail that you are accepting mail sent to another FQDN. I don't remember the exact line in sendmail.cf that required a change, but I believe sendmail.cw takes care of this now. It has been a while since I had to do this myself, and I am not near the network I did this to. Perhaps some other kind soul will elaborate more here. forbesr@rl.af.mil (Rodney C Forbes - PRC Inc.) Hendra Sentono stands accused of saying: Date: Mon, 21 Apr 1997 15:03:40 +0700 (JVT) Subject: Re: Email config problem > On Mon, 21 Apr 1997, Teemu Kuusijarvi wrote: > > > we have FreeBSD based firewall and server here at work. The server is our > > mailhost. Our email comes in and goes out without a problem when using > > addresses like: > > > > login-id@mailhost.domain.name or > > firstname.lastname@mailhost.domain.name > > > > but how can I make these addresses work: > > > > login-id@domain.name > > firstname.lastname@domain.name > > > > Other machines are WinNT workstations connecting via imapd, ipop3d or > > ipop2d. No problems there. > > > > I don't think this is a correct way to solve your problem, but it works > on our BSD 2.1.5 machine. > > you can try hiding the mailhost name by adding record on one of your > DNS setup file (located on /etc/namedb - I hope you've already know > about how it works from the books you've read). > > Try to configure like this: > > $ORIGIN domain.name > mailhost IN A ip.number.of.the-machine > IN MX 10 mailhost.domain.name. > # specify any other mail exchanger if exist > @ IN A ip.number.of.the-mailhost-machine > IN CNAME mailhost.domain.name. > # it may seems curious that a machine has two host record with > # different name but it works on ours. > > We use this configuration on our machine (it also works with > Netscape Mail Server for WinNT) > > Anybody has another better suggestions? > > > ======================================================== > Hendra Sentono > hendra@unix.ukdw.ac.id > > Duta Wacana Christian University, Yogyakarta, Indonesia > URL: http://www.ukdw.ac.id > ======================================================== > > ------------------------------ >-- End of excerpt from Hendra Sentono -- forbesr@rl.af.mil (Rodney C Forbes - PRC Inc.)