From owner-freebsd-questions Mon Jan 6 21:51:36 2003 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 1E96C37B401 for ; Mon, 6 Jan 2003 21:51:34 -0800 (PST) Received: from visimation.com (visimation.com [206.169.230.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 949CD43ED1 for ; Mon, 6 Jan 2003 21:51:33 -0800 (PST) (envelope-from adaml@visimation.com) Received: from Spooler by visimation.com (Mercury/32 v3.31) ID MO0001B5; 6 Jan 03 21:51:33 -0800 Received: from spooler by visimation.com (Mercury/32 v3.31); 6 Jan 03 21:51:14 -0800 Received: from 5adam5 (12.228.14.29) by visimation.com (Mercury/32 v3.31) with ESMTP ID MG0001B4; 6 Jan 03 21:51:07 -0800 Reply-To: From: "Adam Lofstedt" To: "'Chuck Swiger'" , Subject: RE: Redirecting root's email Date: Mon, 6 Jan 2003 21:50:53 -0800 Organization: Visimation, Inc. Message-ID: <000001c2b610$c5d99c20$6501a8c0@5adam5> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal In-Reply-To: <3E1A63C7.3040200@mac.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Damn this is a long thread... > > Thanks Jack. That didn't work. This is what I got: > forcefield# mail > > -v -s test sendtest < /dev/null Null message body; hope that's ok > > sendtest... Connecting to localhost.visimation.com. via relay... > > sendtest... Deferred: Operation timed out with > localhost.visimation.com > > > > I think something else is wrong here. This is on a > dual-homed gateway > > running ipf and ipnat. For testing purposes I made the ipf.rules > > simply pass in all and pass out all, and then I am mapping > my external > > address on external NIC to my internal network. In > ipnat.rules I am > > redirecting port 25 of the external interface to port 25 of my > > internal network's mailserver. > > That probably means that sendmail can't bind to port 25 on > that interface, > because your NAT rule is already listening on that port, in > order to redirect > connections. [ However, you may not care if you're only > trying to send mail > outbound from this gateway box. ] Right, I don't care. I just want to get root's emails out of there. Basically I'm trying to send root's emails outbound from the gateway through the internal interface to my internal mail server. The gateway uses my internal name server to resolve names, so nothing should even be going out the external interface of the box. > > > This seems like a standard gateway setup. I'm not sure how/why it > > would affect sendmail running on the gateway machine. I just can't > > understand why I can telnet into 127.0.0.1 port 25 and get > a response > > from sendmail, but then when I try to send a mail out, it can't > > connect to the localhost. > > Are you sure that "localhost.visimation.com" maps to > 127.0.0.1? Yes. I can ping localhost.visimation.com and it comes back just fine as 127.0.0.1. >Anyway, you > don't want to deliver the mail locally, right-- you want the > mail from > "forcefield" to be relayed (via an alias if I understood the > earlier part of > the thread) to your "internal network's mailserver". > Right. Exactly. > Can you telnet internal_mailserver 25? Yes I can telnet to it from the gateway. Definately my internal mail server is not the problem, as it is working normally. > Does it work if you turn off NAT and the redirect? Nope. I flushed all the rules, my ipnat.rules in empty and my ipf.rules is pass in all and pass out all. > Is there anything interesting in /var/log/maillog? Nope. Just the same things. Jan 4 00:00:00 forcefield newsyslog[7170]: logfile turned over Jan 4 00:07:33 forcefield sm-msp-queue[7180]: h03F7WAs006196: to=root, delay=17:00:01, xdelay=00:00:00, mailer=relay, pri=3091680, relay=localhost.visimation.com., dsn=4.0.0, stat=Deferred: Operation timed out with localhost.visimation.com. Jan 4 00:07:33 forcefield sm-msp-queue[7180]: h03F7WAr006196: to=root, delay=17:00:01, xdelay=00:00:00, mailer=relay, pri=3098805, relay=localhost.visimation.com., dsn=4.0.0, stat=Deferred: Operation timed out with localhost.visimation.com. Jan 4 00:07:33 forcefield sm-msp-queue[7180]: h03B2Nw3006001: to=root, ctladdr=root (0/0), delay=21:05:10, xdelay=00:00:00, mailer=relay, pri=3900062, relay=localhost.visimation.com., dsn=4.0.0, stat=Deferred: Operation timed out with localhost.visimation.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message