OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: "mail loops back" problem

From: Wietse Venema (wietseporcupine.org)
Date: Tue Feb 24 2004 - 09:01:43 CST


Marcelo P. Lima:
> Well, the same exercise for balka.com comes back blank, of course,
> since balka.com is not a local domain on this machine:

Good. The domain isn't local, it is not listed in the transport
map, and therefore Postfix gives the mail to the SMTP client.

> balka.com is just a domain to which I want to send email... the same
> way I would send email to postfix-userspostfix.org or to
> someoneyahoo.com, etc... but the email loops back :(

Right. The Postfix SMTP client looks up the MX record for balka.com:

    balka.com. 1D IN MX 10 smtp.balka.com.

and the A record for smtp.balka.com.

    smtp.balka.com. 23h58m9s IN A 209.15.32.137

Postfix reports "warning: mailer loop: best MX host for balka.com
is local" when the IP address matches $inet_interfaces or
$proxy_interfaces.

So either your DNS is screwed or your inet_interfaces or proxy_interfaces
settings are.

        Wietse

>
>
> On Feb 23, 2004, at 21:16, Wietse Venema wrote:
>
> > Marcelo P. Lima:
> >> That is correct: mail for userjoesao.com (local users) are given to
> >> maildrop.
> >>
> >> But I'm trying to send email to userbalka.com (user at another domain
> >> on another box in another network) and that mail is looping back...
> >> how
> >> do I fix that?
> >
> > OK, so we repeat the same transport mapping exercise for
> > userbalka.com.
> >
> > What is the output from:
> > postmap -q balka.com mysql:/etc/postfix/mysql_transport_maps.cf
> > postmap -q userbalka.com
> > mysql:/etc/postfix/mysql_transport_maps.cf
> >
> > And we'll take it from there.
> >
> > Wietse
> >>
> >>
> >>
> >> On Feb 23, 2004, at 20:16, Wietse Venema wrote:
> >>
> >>> Marcelo P. Lima:
> >>>> mydestination = $mydomain, $transport_maps, localhost.$mydomain,
> >>>> transport_maps = mysql:/etc/postfix/mysql_transport_maps.cf
> >>>
> >>> Marcelo P. Lima:
> >>>> [rootlocalhost admin]# postmap -q joesao.com
> >>>> mysql:/etc/postfix/mysql_transport_maps.cf
> >>>> maildrop
> >>>
> >>> Then mail for userjoesao.com is given to the pipe delivery
> >>> agent as specified in your master.cf file:
> >>>
> >>> maildrop unix - n n - - pipe
> >>> flags=DRhu user=maildrop argv=/usr/bin/maildrop -w 90 -d
> >>> ${recipient}
> >>>
> >>> This is not consistent with your observation that mail is given to
> >>> the Postfix SMTP client.
> >>>
> >>> Wietse
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >
>
>
>