From owner-freebsd-questions Fri Dec 20 22:34:56 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA28258 for questions-outgoing; Fri, 20 Dec 1996 22:34:56 -0800 (PST) Received: from darwin.tti.net (darwin.tti.net [206.14.71.1]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id WAA28253 for ; Fri, 20 Dec 1996 22:34:53 -0800 (PST) Received: from atlantis.bawel.net (atlantis.bawel.net [140.174.160.110]) by darwin.tti.net (8.6.11/8.6.9) with SMTP id WAA14158; Fri, 20 Dec 1996 22:36:46 -0800 Message-Id: <1.5.4.32.19961221063319.006ae7c0@darwin.tti.net> X-Sender: jk@darwin.tti.net X-Mailer: Windows Eudora Light Version 1.5.4 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 20 Dec 1996 22:33:19 -0800 To: "Jordyn A. Buchanan" From: Jeffry Komala Subject: Re: Help! MX mail error Cc: questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 12:38 AM 12/21/96 -0500, you wrote: >On Fri, 20 Dec 1996, Jeffry Komala wrote: > >> I am trying to have inbound emails without specific hostname, delivered to >> my freeBSD 2.1.5 box which runs primary DNS. >> I have the following lines in my forward DNS file: >> >> $ORIGIN bawel.net. >> <-----SOA record deleted for brevity-------> >> MX 0 pioneer.bawel.net. >> IN NS pioneer.bawel.net. >> >> However, after I added the MX line as suggested by "DNS and BIND" book, >> I've got the following error message when sending an email with just the >> domain name: >> >> ----- Transcript of session follows ----- >> 554 MX list for bawel.net. points back to pioneer.bawel.net >> 554 ... Local configuration error >> > >Sendmail doesn't think that it is supposed to be accepting mail >for bawel.net, but when it tries to send it to the "right" place, it >discovers that the only logical place to send the mail is back to the >computer that is already handling the mail (in other words, sendmail >looks up the MX records for the domain and discovers it is about to pass >the message on to itself!). This confuses sendmail. > >Let sendmail know that it is supposed to be accepting mail for bawel.net. >Add a line with "bawel.net" to /etc/sendmail.cw. > Thanks for the help. Ironically, I have done something similar under /etc/sendmail.cf. I added: Cwbawel.net Cwpioneer.bawel.net (I am not sure which one is important, so I did both). Yet, after I added the two lines or the /etc/sendmail.cw, nothing changed! I thought I did restart sendmail daemon by using kill -HUP. Apparently kill -HUP didn't force sendmail daemon to re-read sendmail.cf. So, I had to kill -9 and restarted sendmail with /usr/sbin/sendmail -bd . Now, emails to user@mydomain works! Just a little note. Beside adding the MX record: my.domain IN MX 0 hostname.my.domain "DNS and BIND" also suggests to add: my.domain IN A xx.xx.xx.xx (where xx=IP address of the host) I don't know what the use for the additional A record other than it lets me telnet to my freeBSD box without specifying the hostname. Jeffry .---. .----------- Fortune cookie sez' / \ __ / ------ "Pray for what you want..... / / \(oo)/ ----- but work for the things you need." ////// ' \/ ` --- //// / // : : --- my email addresses: (_\_|___|_/_) // / / /` '-- jsk@tti.net (o o) // //..\\ jeffry@tti.net \ / /-----------UU----UU-------------------------------m---O---m--------- '//||\\` ''``