Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2002 07:19:58 -0500
From:      rahermon@iastate.edu
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Telnet localhost 25
Message-ID:  <000301c207d4$504f9850$8404a8c0@TheGetto>

next in thread | raw e-mail | index | archive | help
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
<snip>
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

<snip>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000301c207d4$504f9850$8404a8c0>