Another useful tool for sorting out problems like this is nmap eg nmap localhost Starting nmap V. 2.12 by Fyodor (fyodor@dhp.com, www.insecure.org/nmap/) Interesting ports on localhost (127.0.0.1): Port State Protocol Service 9 open tcp discard 13 open tcp daytime 21 open tcp ftp 22 open tcp ssh 23 open tcp telnet 25 open tcp smtp 37 open tcp time 79 open tcp finger 80 open tcp http 111 open tcp sunrpc 113 open tcp auth 139 open tcp netbios-ssn 143 open tcp imap2 515 open tcp printer 762 open tcp quotad 6000 open tcp X11 Nmap run completed -- 1 IP address (1 host up) scanned in 1 second or even nmap -O localhost # This requires root priviliges Starting nmap V. 2.3BETA6 by Fyodor (fyodor@dhp.com, www.insecure.org/nmap/) Interesting ports on localhost (127.0.0.1): Port State Protocol Service 21 open tcp ftp 22 open tcp ssh 23 open tcp telnet 25 open tcp smtp 37 open tcp time 53 open tcp domain 79 open tcp finger 80 open tcp http 110 open tcp pop-3 111 open tcp sunrpc 113 open tcp auth 513 open tcp login 514 open tcp shell TCP Sequence Prediction: Class=random positive increments Difficulty=2692150 (Good luck!) Remote operating system guess: Linux 2.1.122 - 2.2.12 Nmap run completed -- 1 IP address (1 host up) scanned in 1 second Not a bad guess actually SuSE 6.3 kernel 2.2.13 ____________________________________ Giles Nunn - Network Manager Carms Schools ICT Development Centre Tel: +44 01239 710662 Fax: 710985 ____________________________________ On Wed, 28 Mar 2001, Frank Shute wrote:
On Tue, Mar 27, 2001 at 10:22:30PM +0100, James & Cyb�le wrote:
Hi again, thanks again for all the continued help with my SENDMAIL woes......
1.I can send mail to the internet...isn't that on PORT 25?
But that way it's up to Demon whether they accept connections from your IP. Incoming you have to explicitly allow connections from Demon to your smtp daemon.
2.ps agr gives sendmail accepting connection on Port 25. 3. If I try to run sendmail in the foreground SENDMAIL -bD I get opendaemonsocket; cannot bind Address already in use. WHAT? Still can't see what.
Isn't that because you've already got Sendmail accepting connections on port 25 ie. the address is already in use. Try:
# /etc/rc.d/init.d/sendmail stop
first before trying to run Sendmail in the foreground. If you're still having problems with `address already in use' messages. Then try:
# /usr/sbin/lsof -i TCP:25
Which will tell you what is listening on that port (You might not have lsof but you can do a search for it at Google) and you can then kill it.
4. I'm getting confused with inetd.conf. THis contains a hashed out smtd line that I don't need according to what I've read because the SENDMAIL daemon now runs things? I made changes to hosts.allow as suggested by Frank and when I try /usr/sbin/tcpdchk -v -i /etc/inetd.conf it tells me about an unknown operation in inetd.conf.
I'm sorry I'm not really the person to help you since I don't use Sendmail and it seems that I've led you up the garden path (from inetd.conf):
# do not uncomment smtp unless you *really* know what you are doing. # smtp is handled by the sendmail daemon now, not smtpd. It does NOT # run from here, it is started at boot time from /etc/rc.d/rc#.d.
So I've no idea how Sendmail access is controlled. Having a look in the boot script should give you an idea though. Any Sendmail wizards out there? I guess it's a Sendmail configuration question which I can't help you with.
The question being:
How do you allow Sendmail to accept mail from certain IP addresses?
5. When I telnet to my FQDN on port 25 I get refused and it then tries the local host.
Some sort of resolution problem by the sounds of it. Try a variety of stuff:
$ telnet localhost 25 $ telnet 127.0.0.1 25
and see how you get on. At least one should work otherwise you couldn't send mail yourself.
I found a useful page on the net in SWEDISH!
My mother speaks Swedish! But she doesn't understand anything about smtp :-(
6. Here are the last few lines from todays log.
starting daemon SMTP NOQUEUE SYSERR(root) opendeamonsocket cannot bind address in use problem creating SMTP socket
Why isn't ps agr (or whatever) listing something else on PORT 25 if that is what it is complaining about........
If you do:
# /usr/sbin/lsof -i
you'll see that a whole load of stuff might be listening but not necessarily listed in ps output.
--
Frank
*-------*-----*-----*-----*-----*-----*-----*-----*-----*-------* | Boroughbridge | Tel: 01423 323019 | PGP keyID: 0xC0B341A3 | *-------*-----*-----*-----*-----*-----*-----*-----*-----*-------* http://www.esperance-linux.co.uk/