From owner-freebsd-questions@FreeBSD.ORG Sat Jul 5 05:28:03 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8159F37B401 for ; Sat, 5 Jul 2003 05:28:03 -0700 (PDT) Received: from mailhost1.bishopston.net (mailhost1.bishopston.net [68.147.148.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEB4543FE9 for ; Sat, 5 Jul 2003 05:28:01 -0700 (PDT) (envelope-from jamie@bishopston.net) X-Catflap-Envelope-From: X-Catflap-Envelope-To: freebsd-questions@freebsd.org Received: from catflap.bishopston.net (jamie@localhost [IPv6:::1]) h65CRxix061041; Sat, 5 Jul 2003 13:27:59 +0100 (BST) (envelope-from jamie@catflap.bishopston.net) Received: (from jamie@localhost) by catflap.bishopston.net (8.12.9/8.12.7/Submit) id h65CRxAV061038; Sat, 5 Jul 2003 13:27:59 +0100 (BST) From: Jamie Jones Message-Id: <200307051227.h65CRxAV061038@catflap.bishopston.net> To: "Thomas Beutler" In-Reply-To: <01057406235$023864$0001$h65Bv9ix023489@mail2news.bishopston.net> References: <01057406235$023864$0001$h65Bv9ix023489@mail2news.bishopston.net> X-newsgroup: bish.lists.freebsd.questions X-In-Response-To: Thomas Beutler Date: Sat, 5 Jul 2003 13:27:59 +0100 X-Spam-Status: No, hits=-0.9 required=6.0 tests=AWL,BAYES_30,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.55-catflap_1 X-Spam-Checker-Version: SpamAssassin 2.55-catflap_1 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: Need help with a strange mail/domain problem! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2003 12:28:03 -0000 In bish.lists.freebsd.questions, you wrote: > Third task was to get my email work... and now the problems begins. > > I own the domain beutler.se, and my computers name is visthusboden. > The server accepts incoming mail all right - no problems there... BUT... > ...whatever I do, all outgoing mail get the address > user@visthusboden.beutler.se instead of user@beutler.se > > What am I doing wrong? > > I've checked and tripple-checked every file in /etc/namedb/ and everything > looks fine (no missing dots or > some simple problem like that) and I've really read this through in the > FreeBSD manual... and still... ??? It's not a DNS issue, it's "sendmail". What it's currently doing is correct - by default, it uses your fully qualified hostname for the Sender address -- it doesn't know that "user@beutler.se" will work also - so, you need to tell sendmail of this fact: You can do this with the "massquerading" feature of sendmail. See: http://www.sendmail.org/m4/masquerading_relaying.html and more generally: http://www.sendmail.org/m4/readme.html Cheers, Jamie