From owner-freebsd-questions Mon Jan 6 21: 9:40 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 7ACDB37B401 for ; Mon, 6 Jan 2003 21:09:37 -0800 (PST) Received: from sage-american.com (adsl-65-71-135-139.dsl.crchtx.swbell.net [65.71.135.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C9A443E4A for ; Mon, 6 Jan 2003 21:09:36 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea.sage-american [192.168.0.3]) by sage-american.com (8.12.6/8.12.6) with SMTP id h0759MJ7049173; Mon, 6 Jan 2003 23:09:23 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20030106230922.011ef950@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 06 Jan 2003 23:09:22 -0600 To: , "'Matthew Emmerton'" , From: "Jack L. Stone" Subject: RE: Redirecting root's email In-Reply-To: <001801c2b608$c0f069d0$6501a8c0@5adam5> References: <3.0.5.32.20030106204449.011ef950@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-1.6 required=4.5 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02 version=2.43-jlsrules1 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 At 08:53 PM 1.6.2003 -0800, Adam Lofstedt wrote: >> >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 > If sendmail is configured properly in rc.conf as previously discussed, now I really suspect the firewall. Have you tried to simply open the firewall completely (drop all rules) while doing the testing...? At least a wide-open FW will eliminate that as being the culprit. I don't remember whether this was already suggested. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message