From owner-freebsd-questions Sun May 5 6:36:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from services.webwarrior.net (overlord-host99.dsl.visi.com [209.98.86.99]) by hub.freebsd.org (Postfix) with ESMTP id E8BE937B403 for ; Sun, 5 May 2002 06:36:04 -0700 (PDT) Received: from twincat.vladsempire.net (unknown [209.105.45.217]) by services.webwarrior.net (Postfix) with ESMTP id A4AAF8382C5 for ; Sun, 5 May 2002 08:35:59 -0500 (CDT) Received: by twincat.vladsempire.net (Postfix, from userid 1001) id 352ED38B2; Sun, 5 May 2002 08:34:13 +0000 (GMT) Date: Sun, 5 May 2002 08:34:13 +0000 From: Josh Paetzel To: johann@broadpark.no Cc: questions@FreeBSD.ORG Subject: Re: Mail loops back to myself Message-ID: <20020505083413.J271@twincat.vladsempire.net> References: <1020600838.3cd522066d4d3@mail.broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1020600838.3cd522066d4d3@mail.broadpark.no>; from johann@broadpark.no on Sun, May 05, 2002 at 02:13:58PM +0200 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 Sun, May 05, 2002 at 02:13:58PM +0200, johann@broadpark.no wrote: > > Hi. > > I'm running a Postfix mail-gateway. I'm sending my e-mails from my Postfix > workstation, though I need to recieve them through my gateway. > > I've tried exporting /var/mail, but that seems like bullshit. At the moment > I'm giving fetchmail a try, but I havn't really gotten the chance to > 'fetch' anything yet. I can't think of any valid reason why you would need to export /var/mail. Fetchmail is used to grab mail from a POP server. From what you describe that sounds pretty worthless to you. > > My configurations are as followed: Ok, so which box is this? The gateway or your workstation? Are they both the same, or did you leave one out? > > main.cf: > > mydestination = $myhostname, localhost.$mydomain, $ninja.mydomain, $mydomain > mynetworks = 192.168.0.0/8, 127.0.0.0/8 > > Aliases for my workstation's users have been added to /etc/aliases and I've > done both newaliases and postalias (which one do I need?). Ok, so this is just the gateway we are talking about. > But, whether I send a mail to user 'johann' on my gateway or user 'johann' > on my workstation, I get this reply: > > ----- Forwarded message from Mail Delivery System > ----- > Date: Sun, 5 May 2002 13:57:51 +0200 (CEST) > From: Mail Delivery System > Reply-To: Mail Delivery System > Subject: Undelivered Mail Returned to Sender > To: johann@broadpark.no > > This is the Postfix program at host muay.amphex.com. > > I'm sorry to have to inform you that the message returned > below could not be delivered to one or more destinations. > > For further assistance, please send mail to > > If you do so, please include this problem report. You can > delete your own text from the message returned below. > > The Postfix program > > : mail for ninja.amphex.com loops back to myself > > ----- End forwarded message ----- > > Would anyone know? > > Thanks. > > -- Johann > Could be one of two things, either you have Postfix on both machines set up to forward mail to each other, or you have a DNS issue. Describe your naming and ips a bit further if you would, along with any MX records you might have. I remember doing something like this is the past and getting the same error from Postfix. IIRC, my solution was to set up the internal network as a subdomain in DNS. ie, the gateway was mail.something.com, and the internal machines were host1.internal.something.com. Then I just used address rewriting to make sure that all the mail appeared to come from something.com. Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message