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