You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Idan Plotnik <id...@securenet.co.il> on 2004/05/20 12:48:02 UTC

daemon MTA: cannot bind: Address already in use

 
Hi All,

I install sendmail-8.12.8-4 on RedHat9, and everything is working just
fine (I am getting mail from the world), but when I open the mailog
file, I saw these error.
I read about this on the web and I found that I need to check my
"DaemonPortOptions" I checked it and every thing is ok.

Someone have an idea ?


May 20 08:48:30 MR-doar sendmail[2147]: starting daemon (8.12.8):
SMTP+queueing@01:00:00 May 20 08:48:30 MR-doar sendmail[2147]: NOQUEUE:
SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already
in use May 20 08:48:30 MR-doar sendmail[2147]: daemon MTA: problem
creating SMTP socket May 20 08:48:35 MR-doar sendmail[2147]: NOQUEUE:
SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already
in use May 20 08:48:35 MR-doar sendmail[2147]: daemon MTA: problem
creating SMTP socket May 20 08:48:39 MR-doar MailScanner[2196]:
MailScanner E-Mail Virus Scanner version 4.30.3 starting...
May 20 08:48:40 MR-doar sendmail[2147]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use May 20
08:48:40 MR-doar sendmail[2147]: daemon MTA: problem creating SMTP
socket May 20 08:48:45 MR-doar sendmail[2147]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use May 20
08:48:45 MR-doar sendmail[2147]: daemon MTA: problem creating SMTP
socket May 20 08:48:50 MR-doar sendmail[2147]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use May 20
08:48:50 MR-doar sendmail[2147]: daemon MTA: problem creating SMTP
socket May 20 08:48:51 MR-doar MailScanner[2126]: Using locktype = flock
May 20 08:48:51 MR-doar MailScanner[2197]: MailScanner E-Mail Virus
Scanner version 4.30.3 starting...
May 20 08:48:55 MR-doar sendmail[2147]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use May 20
08:48:55 MR-doar sendmail[2147]: daemon MTA: problem creating SMTP
socket May 20 08:48:58 MR-doar MailScanner[2196]: Using locktype = flock
May 20 08:48:59 MR-doar MailScanner[2198]: MailScanner E-Mail Virus
Scanner version 4.30.3 starting...
May 20 08:49:00 MR-doar sendmail[2147]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use May 20
08:49:00 MR-doar sendmail[2147]: daemon MTA: problem creating SMTP
socket May 20 08:49:05 MR-doar sendmail[2147]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot bind: Address already in use

And I also check this:

[root@MR etc]# netstat -an|grep 25
tcp        0      0 0.0.0.0:25              0.0.0.0:*
LISTEN
unix  2      [ ACC ]     STREAM     LISTENING     2546   /dev/gpmctl
unix  2      [ ]         DGRAM                    2548


Thanks

Re: daemon MTA: cannot bind: Address already in use

Posted by Bob Apthorpe <ap...@cynistar.net>.
Hi,

On Thu, 20 May 2004, Theo Van Dinter wrote:

> On Thu, May 20, 2004 at 02:19:35PM +0200, Ilan Aisic wrote:
> > You may want to run `nmap` on your mail host IP to see which processes
> > are using which ports.
>
> Eeek!  I mean, I guess you could run nmap, but the correct way of doing
> that is "lsof -i".  If you know the port number "lsof -i :num".

And provided you have some form of linux, you can use:

  sudo netstat -ntlp

or (as root if you don't have sudo set up)

  netstat -ntlp

otherwise lsof is the way to go.

hth,

-- Bob

Re: daemon MTA: cannot bind: Address already in use

Posted by Theo Van Dinter <fe...@kluge.net>.
On Thu, May 20, 2004 at 02:19:35PM +0200, Ilan Aisic wrote:
> You may want to run `nmap` on your mail host IP to see which processes are using which ports. 

Eeek!  I mean, I guess you could run nmap, but the correct way of doing
that is "lsof -i".  If you know the port number "lsof -i :num".

-- 
Randomly Generated Tagline:
Energizer Bunny Arrested -- Charged with Battery.

RE: daemon MTA: cannot bind: Address already in use

Posted by Ilan Aisic <il...@pointer.co.il>.
Hi Idan,
You may want to run `nmap` on your mail host IP to see which processes are using which ports. 

I'm not sure what the problem is but it could be that your firewall is blocking those  ports.
If you are using iptables you may try `iptables --flush` or even `/sbin/service iptables stop`
to stop the firewall, then just for a short period, test your sendmail config again and then run
`/sbin/service iptables restart`. 

Anyway, the spamassassin-users group is not the right mailing list.
You may want to check out Linux-IL (linux.org.il) which is quite active.

--
Ilan Aisic
Pointer Software Systems, Ltd.


> -----Original Message-----
> From: Idan Plotnik [mailto:idan@securenet.co.il] 
> Sent: Thursday, May 20, 2004 12:48 PM
> To: spamassassin-users@incubator.apache.org
> Subject: daemon MTA: cannot bind: Address already in use
> 
> 
>  
> Hi All,
> 
> I install sendmail-8.12.8-4 on RedHat9, and everything is 
> working just fine (I am getting mail from the world), but 
> when I open the mailog file, I saw these error. I read about 
> this on the web and I found that I need to check my 
> "DaemonPortOptions" I checked it and every thing is ok.
> 
> Someone have an idea ?
> 
> 
> May 20 08:48:30 MR-doar sendmail[2147]: starting daemon (8.12.8):
> SMTP+queueing@01:00:00 May 20 08:48:30 MR-doar 
> sendmail[2147]: NOQUEUE:
> SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: 
> Address already in use May 20 08:48:30 MR-doar 
> sendmail[2147]: daemon MTA: problem creating SMTP socket May 
> 20 08:48:35 MR-doar sendmail[2147]: NOQUEUE:
> SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: 
> Address already in use May 20 08:48:35 MR-doar 
> sendmail[2147]: daemon MTA: problem creating SMTP socket May 
> 20 08:48:39 MR-doar MailScanner[2196]: MailScanner E-Mail 
> Virus Scanner version 4.30.3 starting... May 20 08:48:40 
> MR-doar sendmail[2147]: NOQUEUE: SYSERR(root):
> opendaemonsocket: daemon MTA: cannot bind: Address already in 
> use May 20 08:48:40 MR-doar sendmail[2147]: daemon MTA: 
> problem creating SMTP socket May 20 08:48:45 MR-doar 
> sendmail[2147]: NOQUEUE: SYSERR(root):
> opendaemonsocket: daemon MTA: cannot bind: Address already in 
> use May 20 08:48:45 MR-doar sendmail[2147]: daemon MTA: 
> problem creating SMTP socket May 20 08:48:50 MR-doar 
> sendmail[2147]: NOQUEUE: SYSERR(root):
> opendaemonsocket: daemon MTA: cannot bind: Address already in 
> use May 20 08:48:50 MR-doar sendmail[2147]: daemon MTA: 
> problem creating SMTP socket May 20 08:48:51 MR-doar 
> MailScanner[2126]: Using locktype = flock May 20 08:48:51 
> MR-doar MailScanner[2197]: MailScanner E-Mail Virus Scanner 
> version 4.30.3 starting... May 20 08:48:55 MR-doar 
> sendmail[2147]: NOQUEUE: SYSERR(root):
> opendaemonsocket: daemon MTA: cannot bind: Address already in 
> use May 20 08:48:55 MR-doar sendmail[2147]: daemon MTA: 
> problem creating SMTP socket May 20 08:48:58 MR-doar 
> MailScanner[2196]: Using locktype = flock May 20 08:48:59 
> MR-doar MailScanner[2198]: MailScanner E-Mail Virus Scanner 
> version 4.30.3 starting... May 20 08:49:00 MR-doar 
> sendmail[2147]: NOQUEUE: SYSERR(root):
> opendaemonsocket: daemon MTA: cannot bind: Address already in 
> use May 20 08:49:00 MR-doar sendmail[2147]: daemon MTA: 
> problem creating SMTP socket May 20 08:49:05 MR-doar 
> sendmail[2147]: NOQUEUE: SYSERR(root):
> opendaemonsocket: daemon MTA: cannot bind: Address already in use
> 
> And I also check this:
> 
> [root@MR etc]# netstat -an|grep 25
> tcp        0      0 0.0.0.0:25              0.0.0.0:*
> LISTEN
> unix  2      [ ACC ]     STREAM     LISTENING     2546   /dev/gpmctl
> unix  2      [ ]         DGRAM                    2548
> 
> 
> Thanks
>