From owner-freebsd-questions Thu May 30 5:21:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub-1.iastate.edu (mailhub-1.iastate.edu [129.186.140.3]) by hub.freebsd.org (Postfix) with ESMTP id 33FF737B41A for ; Thu, 30 May 2002 05:20:51 -0700 (PDT) Received: from mailout-1.iastate.edu (mailout-1.iastate.edu [129.186.140.1]) by mailhub-1.iastate.edu (8.9.3/8.9.3) with SMTP id HAA19948 for ; Thu, 30 May 2002 07:20:48 -0500 From: rahermon@iastate.edu Received: from fw.student.iastate.edu(64.113.93.191) by mailout-1.iastate.edu via csmap id 1375; Thu, 30 May 2002 07:23:44 -0500 (CDT) To: Subject: Telnet localhost 25 Date: Thu, 30 May 2002 07:19:58 -0500 Message-ID: <000301c207d4$504f9850$8404a8c0@TheGetto> 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 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 I was not sure where to send the question so when in doubt try this list. FreeBSD FW 4.6-RC FreeBSD 4.6-RC #0: Mon May 27 23:46:22 CDT 2002 root@FW.rhbsd.dhs.org:/usr/obj/usr/src/sys/FW i386 To make a log story short the above machine is my DNS, DHCP server, and Firewall running NATD. Using ipfw and the rules that Dan O'Connor, from Freebsd cheat sheets, suggests on Setting-up a Dual-Homed Host. The problem: Sendmail stopped working about 5 days ago. Let me rephrase that, mail delivery stopped about 5 days ago. inside interface ip: 192.168.4.1 if { telnet 192.168.4.1 25 } Trying 192.168.4.1... Connected to ns1.rhbsd.dhs.org. Escape character is '^]'. 220 ns1.rhbsd.dhs.org ESMTP Sendmail 8.12.3/8.12.3; Thu, 30 May 2002 07:38:24 -0500 (CDT) if { telnet localhost 25 } Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Operation timed out telnet: Unable to connect to remote host funny thing is that telnet localhost 25 only looks as above if I remove the following from my rules set: ${fwcmd} add 200 deny all from any to 127.0.0.0/8 else { telnet localhost 25 } Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Permission denied telnet: Unable to connect to remote host I can also do { telnet 0 25 } Trying 0.0.0.0... Connected to 0. Escape character is '^]'. 220 ns1.rhbsd.dhs.org ESMTP Sendmail 8.12.3/8.12.3; Thu, 30 May 2002 07:53:27 -0500 (CDT) # tail -f /var/log/maillog May 30 07:45:36 FW sm-mta[5032]: g4UCcOuX005032: ns1.rhbsd.dhs.org [192.168.4.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA May 30 07:53:51 FW sm-mta[5052]: g4UCrRuX005052: ns1.rhbsd.dhs.org [192.168.4.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA I checked: /etc/resolv.conf /etc/hosts /etc/hosts.allow I tried just telling sendmail to deliver mail somewhere else like 192.168.4.1 where I was able to telnet to port 25 but seems like I am to dense to do it. # cd /etc/mail/ # make all modified fw.mc (which was created after make all) by adding LOCAL_RELAY and since it did not work MAIL_HUB I also explicitly allow localhost and 127.0.0.1 on /etc/mail/access Which make updated the access.db file. # make cf # make install # make restart Finally, it follows some of the errors on my maillog file. # tail -f /var/log/maillog May 30 08:12:59 FW sm-msp-queue[5075]: g4Q84JOZ000943: to=root, ctladdr=root (0/0), delay=4+05:08:40, xdelay=00:00:00, mailer=relay, pri=16500053, relay=localhost.rhbsd.dhs.org., dsn=4.0.0, stat=Deferred: Permission denied May 30 08:12:59 FW sm-msp-queue[5075]: g4Q84H1Y000899: to=root, ctladdr=root (0/0), delay=4+05:08:42, xdelay=00:00:00, mailer=relay, pri=16500056, relay=localhost.rhbsd.dhs.org., dsn=4.0.0, stat=Deferred: Permission denied May 30 08:12:59 FW sm-msp-queue[5075]: g4PDNvgF004004: to=root, delay=4+23:49:02, xdelay=00:00:00, mailer=relay, pri=18751468, relay=localhost.rhbsd.dhs.org., dsn=4.0.0, stat=Deferred: Permission denied After many days of reading and trying different things I don't know where else to look some advice will be greatly appreciated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message