On 4/18/05, Ugo Bellavance <ugob at camo dash route dot com> wrote:
> Chris Buechler wrote:
> > On 4/18/05, Ugo Bellavance <ugob at camo dash route dot com> wrote:
> >>My internal mail server sends a message to the filtering gateway, which
> >>processes it. Then the filtering gatway tries to send the message to
> >>the destination mail server (say 126.96.36.199), it gets redirected to my
> >>internal mail server in an infinite loop.
> > I doubt if this is a firewall issue. To verify that, run 'telnet
> > s0.m0n0.ch 25' on your gateway. If you don't get an answer, there's a
> > network problem. It's a sendmail configuration problem if the port
> > does answer with something like the following.
> > Trying 188.8.131.52...
> > Connected to s0.m0n0.ch.
> > Escape character is '^]'.
> This is why I think it is a firewall issue:
> [ugob@mail ugob]$ telnet 184.108.40.206 25
> Trying 220.127.116.11...
> Connected to 18.104.22.168.
> Escape character is '^]'.
> 220 my.internal.com ESMTP MAIL Service, Version: 5.0.2195.6713 ready at
> Mon, 18 Apr 2005 15:04:06 -0400
Wow, what the... Enable logging for the rule on the interface with
the mail server that permits SMTP outbound. See what traffic it logs.
m0n0wall has no capabilities to redirect traffic, so I'm guessing
sendmail is picking up outbound port 25 traffic somehow. Logging the
traffic and seeing what m0n0wall sees will confirm or deny that. If
it's trying to get out to 22.214.171.124, then m0n0wall is doing
something weird. My guess is the first SMTP packet that goes out is
going to your LAN server's IP address, in which case we know something
local to the box is causing this behavior.
Alternatively, run tcpdump on the filtering server itself and telnet
to 25 on s0.m0n0.ch and see what it sees. Or try both that and