Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2002 08:34:13 +0000
From:      Josh Paetzel <friar_josh@webwarrior.net>
To:        johann@broadpark.no
Cc:        questions@FreeBSD.ORG
Subject:   Re: Mail loops back to myself
Message-ID:  <20020505083413.J271@twincat.vladsempire.net>
In-Reply-To: <1020600838.3cd522066d4d3@mail.broadpark.no>; from johann@broadpark.no on Sun, May 05, 2002 at 02:13:58PM %2B0200
References:  <1020600838.3cd522066d4d3@mail.broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
> <MAILER-DAEMON@muay.amphex.com> -----
>     Date: Sun,  5 May 2002 13:57:51 +0200 (CEST)
>     From: Mail Delivery System <MAILER-DAEMON@muay.amphex.com>
> Reply-To: Mail Delivery System <MAILER-DAEMON@muay.amphex.com>
>  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 <postmaster>
> 
> If you do so, please include this problem report. You can
> delete your own text from the message returned below.
> 
> 			The Postfix program
> 
> <johann@ninja.amphex.com>: 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020505083413.J271>