From owner-freebsd-questions Mon Jan 6 21:21:23 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 840E237B401 for ; Mon, 6 Jan 2003 21:21:21 -0800 (PST) Received: from mtiwmhc13.worldnet.att.net (mtiwmhc13.worldnet.att.net [204.127.131.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0DDC43ED1 for ; Mon, 6 Jan 2003 21:21:20 -0800 (PST) (envelope-from cswiger@mac.com) Received: from sec.local ([12.88.90.220]) by mtiwmhc13.worldnet.att.net (InterMail vM.5.01.05.12 201-253-122-126-112-20020820) with ESMTP id <20030107052118.KFUX20003.mtiwmhc13.worldnet.att.net@sec.local>; Tue, 7 Jan 2003 05:21:18 +0000 Received: from mac.com (prime.local [192.168.1.3]) by sec.local (8.12.6/8.12.6) with ESMTP id h0757L1j000359; Tue, 7 Jan 2003 00:07:22 -0500 (EST) (envelope-from cswiger@mac.com) Message-ID: <3E1A63C7.3040200@mac.com> Date: Tue, 07 Jan 2003 00:21:11 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@FreeBSD.ORG Cc: adaml@visimation.com Subject: Re: Redirecting root's email References: <001801c2b608$c0f069d0$6501a8c0@5adam5> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-2.0 required=8.0 tests=NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.43 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 Adam Lofstedt wrote: [ ... ] > 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. ] > 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? 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". Can you telnet internal_mailserver 25? Does it work if you turn off NAT and the redirect? Is there anything interesting in /var/log/maillog? -Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message