From owner-freebsd-questions Mon Jan 6 20:54: 9 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 4061137B405 for ; Mon, 6 Jan 2003 20:54:03 -0800 (PST) Received: from visimation.com (visimation.com [206.169.230.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9AEE43EA9 for ; Mon, 6 Jan 2003 20:54:02 -0800 (PST) (envelope-from adaml@visimation.com) Received: from Spooler by visimation.com (Mercury/32 v3.31) ID MO0001A7; 6 Jan 03 20:54:02 -0800 Received: from spooler by visimation.com (Mercury/32 v3.31); 6 Jan 03 20:53:43 -0800 Received: from 5adam5 (12.228.14.29) by visimation.com (Mercury/32 v3.31) with ESMTP ID MG0001A6; 6 Jan 03 20:53:42 -0800 Reply-To: From: "Adam Lofstedt" To: "'Jack L. Stone'" , "'Matthew Emmerton'" , Subject: RE: Redirecting root's email Date: Mon, 6 Jan 2003 20:53:30 -0800 Organization: Visimation, Inc. Message-ID: <001801c2b608$c0f069d0$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 In-reply-to: <3.0.5.32.20030106204449.011ef950@mail.sage-one.net> Importance: Normal 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 > >Well, not to be left out of the party, here's the way I've > done for as > >long as I can remember: > > > > (# are from from the aliases file) > ># Pretty much everything else in this file points to "root", so > ># you would do well in either reading roots mailbox or forwarding > ># roots email from here. > > > >root: sageame # On this server > >sageame: jackstone@sage-one.net # Another > domain on another server > > > ># In the above example, I first send root to a normal user > account (may > >be redundant). # I also put include files which contain outside and > >inside accounts > > > ># Test include file list > >sendtest::include:/etc/mail/sendtest # a test file > > > > > > > >Then run # newaliases -- should work > > > >I suggest you try the above "sendtest" used as follows below > which runs > >on the console verbose and you can see what it the mail > system is doing > >and perhaps see the problem: > > > ># mail -v -s test sendtest < /dev/null > > > >where include is a list from /etc/aliases <===== > > ... > > sendtest :include:/etc/sendtest <===== > > > > ooops! The above path is wrong <===== & should be: > sendtest::include:/etc/mail/sendtest > > ...as I have it in the real aliases example further above. > Hope this didn't confuse all the more. But, the sendtest > should show some info on the console as to what it is doing > or not doing. > > Best regards, > Jack L. Stone, > Administrator > > SageOne Net > http://www.sage-one.net > jackstone@sage-one.net > 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. 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. Please don't give up on me! I know this is probably a pretty boring thread:) Adam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message