Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind address error when attempting to start sendmail

Status
Not open for further replies.

colpaarm

Programmer
Jun 30, 2003
29
0
0
US
Hey guys, I have sendmail running on one machine. I still need to work to get it configured the way I want, but that's another issue. My problem is that I have a development box and I'm trying to run sendmail on that machine as well. In both cases, I'm just sending mail. Also, they're both RH Linux 8.0 running sendmail 8.12, I believe. On my dev box, I get the following error

Dec 9 09:43:13 bart sendmail[29576]: daemon MTA: problem creating SMTP socket
Dec 9 09:43:18 bart sendmail[29576]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use

I get a repetition of this. Finally, I get

Dec 9 09:43:18 bart sendmail[29576]: daemon MTA: problem creating SMTP socket
Dec 9 09:43:18 bart sendmail[29576]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting

I have the bat book, but it doesn't seem to address solving this problem. Any help would be greatly appreciated.

 
Hi,

It seems like some program using port 25. Are you trying to run sendmail twice? Try "netstat -an | grep 25" and paste here the result. And "ps -ef | grep sendmail" and paste the result as well. In order to restart sendmail, have you try /etc/init.d/sendmail restart?

dbase77
 
Okay, the netstat results are

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.7:22 192.168.0.4:1259 ESTABLISHED
tcp 0 0 192.168.0.7:22 192.168.0.4:1257 ESTABLISHED
unix 2 [ ACC ] STREAM LISTENING 142503 /tmp/orbit-root/linc-9de-0-9c8132ee1970
unix 3 [ ] STREAM CONNECTED 142510 /tmp/orbit-root/linc-9de-0-9c8132ee1970
unix 3 [ ] STREAM CONNECTED 142509
unix 3 [ ] STREAM CONNECTED 142508 /tmp/orbit-root/linc-9b9-0-53d509cb9fbe4
unix 3 [ ] STREAM CONNECTED 142507
unix 3 [ ] STREAM CONNECTED 142506 /tmp/orbit-root/linc-9de-0-9c8132ee1970
unix 3 [ ] STREAM CONNECTED 142505
unix 3 [ ] STREAM CONNECTED 142502 /tmp/orbit-root/linc-9b7-0-6c63262e7b9db
unix 3 [ ] STREAM CONNECTED 142501
unix 3 [ ] STREAM CONNECTED 142325 /tmp/orbit-root/linc-9d1-0-29366bdfe8832
unix 3 [ ] STREAM CONNECTED 142256 /tmp/orbit-root/linc-9bd-0-e1783ad834fa
unix 3 [ ] STREAM CONNECTED 142255
unix 3 [ ] STREAM CONNECTED 142254 /tmp/orbit-root/linc-9b9-0-53d509cb9fbe4
unix 3 [ ] STREAM CONNECTED 142253
unix 3 [ ] STREAM CONNECTED 142259 /tmp/.ICE-unix/2411



and ps -ef's shows nothing. I guess because it couldn't bind, it shut the server down. I start sendmail with

/usr/sbin/sendmail -bd

and restart it with

kill -HUP `head -1 /var/run/sendmail.pid`

Thanks for any help you can give.




 
Hi again,

By default RH8 sendmail is running during bootup. If you trying to start another sendmail that bind to port 25 it will fail. I suggest you check /etc/init.d/sendmail file and use that file instead. If you pefer starting sendmail manually, then disable auto start of sendmail.

Do you run other MTA like postfix or qmail etc? have you try reboot your machine yet?

dbase77
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top