LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-21-2003, 12:55 PM   #1
scott_r_wagner
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
sendmail quits - cannot bind: Cannot assign requested address


I am (or was) running sendmail 8.11.6 on a 2.4.20 kernel (Red Hat Linux 7.3). The installation has been running without problems for many months. A few days ago, upon reboot, sendmail began failing with the following entries in maillog:

Aug 21 12:12:40 mymachine sendmail[2421]: starting daemon (8.11.6): SMTP+queueing@01:00:00
Aug 21 12:12:40 mymachine sendmail[2421]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address
Aug 21 12:12:40 mymachine sendmail[2421]: daemon MTA: problem creating SMTP socket
Aug 21 12:12:45 mymachine sendmail[2421]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Cannot assign requested address
Aug 21 12:12:45 mymachine sendmail[2421]: daemon MTA: problem creating SMTP socket
[The above repeated at 5 second intervals 10 times]
Aug 21 12:13:30 mymachine sendmail[2421]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting

Has anyone seen anything like this? This is sort of "out of the blue"; all other services are working OK, and the only recent change is a NIC replacement (previous NIC damaged during blackout.) I'm willing to send more info if any sendmail experts out there would like. Thanks!
-Scott Wagner, Rochester NY US
 
Old 08-22-2003, 01:47 PM   #2
scott_r_wagner
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
I found the answer to this one - it seems my eth1: interface, which acqures its ip address via DHCP, conflicted with an entry:
O DaemonPortOptions=Port=smtp,Addr=a.b.c.d, Name=MTA
in my /etc/sendmail.cf .

When I manually fixed the DaemonPortOptions entry in sendmail.cf, sendmail worked fine.

I still have to figure out how to keep the DaemonPortOptions entry synchronized with the (DHCP-assigned) ip address.
 
Old 09-14-2003, 11:02 AM   #3
smccrory
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH, USA
Distribution: RH 7.2
Posts: 2

Rep: Reputation: 0
Scott, do you update a DNS name after you get a new one from DHCP? I.E. do you use DynDNS or similar service? If so, you should be able to use that named address instead of a numbered one. The only problem with that approach is that it may take a few minutes until sendmail will start correctly while the address gets the update and is propogated to your upstream DNS provider(s). In fact, I hourly retart sendmail in a cron.hourly script for that reason and it seems to help. Perhaps there's a better solution?
 
Old 09-14-2003, 12:12 PM   #4
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
while working in the now defunct telecom market,
It was decided that the best practice was to point customer circuits to the
interface rather than ip address

this may be a solution for your troubles

ehd

 
Old 09-14-2003, 04:40 PM   #5
smccrory
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH, USA
Distribution: RH 7.2
Posts: 2

Rep: Reputation: 0
Quote:
Originally posted by ehdwuld
while working in the now defunct telecom market,
It was decided that the best practice was to point customer circuits to the
interface rather than ip address
Can this be done with sendmail.cf?
 
Old 09-14-2003, 06:40 PM   #6
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
I don't know

ehd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ssh tunnel : cannot assign requested address sieker Linux - Networking 6 11-11-2005 02:10 PM
Can not assign IP address jtir Solaris / OpenSolaris 1 09-28-2005 04:37 AM
ping6 error "conect: cannot assign requested addres lamsteven Linux - Networking 0 06-30-2005 08:57 PM
Linux command to assign an ip address seb22 Linux - Networking 5 05-24-2005 01:03 PM
Can't assign a static IPv6 address guzo Linux - Networking 0 02-11-2005 07:22 AM


All times are GMT -5. The time now is 12:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration