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? 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. 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. 5. When I telnet to my FQDN on port 25 I get refused and it then tries the local host. I found a useful page on the net in SWEDISH! 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........ glug....glug.......... James Carter
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/
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/
On Tuesday 27 March 2001 10:22 pm, 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? 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.
When sendmail (or exim etc) is running it listens on port 25 for incoming connections. If you already haveone copy of sendmail running (probably stared at boot-time) you won't be able to start another because the port will already be in use - hence the message you got. Inetd.conf is used by inetd. Inetd listens on all ports listed in the inetd.conf file and on an incoming connection starts up the appropriate program and hands over the connections. In this way, you don't need hundreds of daemons sat arround doing nothing. The smtp line is commented out because you *do* have a smtp daemon waiting - ie sendmail. This is correct and you don't need to change 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.
5. When I telnet to my FQDN on port 25 I get refused and it then tries the local host.
What actual message do you get? What do you mean when you say it then tries localhost?
I found a useful page on the net in SWEDISH!
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
Is this from when you tried to start up sendmail in the foreground, or was it at boot-time, or just while the system was running normally?
Why isn't ps agr (or whatever) listing something else on PORT 25 if that is what it is complaining about........
What do you get from ps awx|grep sendmail It should be something like: 569 ? S 0:00 sendmail: accepting connections on port 25 If you have more than one line, or don't have anything, then the problem is with your startup scripts. If it appears as above, then the problem is (probably) in your sendmail config files. That's another story alltogether. BTW. Have you concidered changing to exim? There are two basic reasons for this - security and easy-of-use. Exim uses well commented human-readable config files. Sendmail is not the most secure program in the world.
glug....glug..........
James Carter
-- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
participants (4)
-
Frank Shute
-
Gary Stainburn
-
Giles Nunn
-
James & Cybèle