port 25 does not stay open, closes after a few minutes.

port 25 does not stay open, closes after a few minutes.

am 09.01.2008 16:58:33 von Louis

Original problem, I could not get port 25 open.
But now it opens but then closes after a few mins.

I was able to open port 25 by modifying the sendmail.mc
Find this line in /etc/mail/sendmail.mc:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

and change it to:

DAEMON_OPTIONS(`Port=smtp, Name=MTA')

The default setting restricts sendmail to accepting connections only from
the same host, for security; now it will accept connections from elsewhere.



But now port 25 only stays open after a few mins and then closes and stays
closed.

Help Please.

Thank you everyone.

Re: port 25 does not stay open, closes after a few minutes.

am 09.01.2008 17:04:35 von Andrzej Filip

"louis" writes:

> Original problem, I could not get port 25 open.
> But now it opens but then closes after a few mins.
>
> I was able to open port 25 by modifying the sendmail.mc
> Find this line in /etc/mail/sendmail.mc:
>
> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
>
> and change it to:
>
> DAEMON_OPTIONS(`Port=smtp, Name=MTA')
>
> The default setting restricts sendmail to accepting connections only from
> the same host, for security; now it will accept connections from elsewhere.
>
>
>
> But now port 25 only stays open after a few mins and then closes and stays
> closed.

Does sendmail report any problems in the log file?

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
If all else fails, immortality can always be assured by spectacular error.
-- John Kenneth Galbraith
----
http://groups.google.com/groups?selm=87abnf0yuk@tara.fsf.hob by-site.com

Re: port 25 does not stay open, closes after a few minutes.

am 09.01.2008 21:16:23 von Louis

This is a short copy of the /var/log/message file.

As soon as I enable the sendmail service port 25 is immediately taken by
another application.



____________________________________________________________ ____________________________________________________________ ___

Jan 9 13:09:01 localhost sendmail[3355]: alias database /etc/aliases rebuilt
by root

Jan 9 13:09:01 localhost sendmail[3355]: /etc/aliases: 76 aliases, longest
10 bytes, 765 bytes total

Jan 9 13:09:01 localhost sendmail[3360]: starting daemon (8.13.8):
SMTP+queueing@01:00:00

Jan 9 13:09:01 localhost sendmail[3360]: NOQUEUE: SYSERR(root):
opendaemonsocket: daemon MTA: cannot listen: Address already in use

Jan 9 13:09:01 localhost sendmail[3360]: daemon MTA: problem creating SMTP
socket

Jan 9 13:09:01 localhost sm-msp-queue[3368]: starting daemon (8.13.8):
queueing@01:00:00

------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ ----

"Andrzej Adam Filip" wrote in message
news:87abnf0yuk@tara.fsf.hobby-site.com...
> "louis" writes:
>
>> Original problem, I could not get port 25 open.
>> But now it opens but then closes after a few mins.
>>
>> I was able to open port 25 by modifying the sendmail.mc
>> Find this line in /etc/mail/sendmail.mc:
>>
>> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
>>
>> and change it to:
>>
>> DAEMON_OPTIONS(`Port=smtp, Name=MTA')
>>
>> The default setting restricts sendmail to accepting connections only from
>> the same host, for security; now it will accept connections from
>> elsewhere.
>>
>>
>>
>> But now port 25 only stays open after a few mins and then closes and
>> stays
>> closed.
>
> Does sendmail report any problems in the log file?
>
> --
> [pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
> Open-Sendmail: http://open-sendmail.sourceforge.net/
> If all else fails, immortality can always be assured by spectacular error.
> -- John Kenneth Galbraith
> ----
> http://groups.google.com/groups?selm=87abnf0yuk@tara.fsf.hob by-site.com

Re: port 25 does not stay open, closes after a few minutes.

am 16.01.2008 00:19:25 von Jim G

It sounds as if you have other sendmail processes running. What I would do
is this:

First, kill all sendmail processes:

killall -9 sendmail

Then if you want sendmail to listen on "all" interfaces I would set the
following in your sendmail.mc

DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')

Then I would rebuild your sendmail config.

Alternately, I would check to make sure that nothing else is attempting to
run on port 25 (postfix?)

netstat -tunap | grep :25

Try that and see how it goes.

Jim


"louis" wrote in message news:rY9hj.529$yQ1.60@edtnps89...
> This is a short copy of the /var/log/message file.
>
> As soon as I enable the sendmail service port 25 is immediately taken by
> another application.
>
>
>
> ____________________________________________________________ ____________________________________________________________ ___
>
> Jan 9 13:09:01 localhost sendmail[3355]: alias database /etc/aliases
> rebuilt by root
>
> Jan 9 13:09:01 localhost sendmail[3355]: /etc/aliases: 76 aliases, longest
> 10 bytes, 765 bytes total
>
> Jan 9 13:09:01 localhost sendmail[3360]: starting daemon (8.13.8):
> SMTP+queueing@01:00:00
>
> Jan 9 13:09:01 localhost sendmail[3360]: NOQUEUE: SYSERR(root):
> opendaemonsocket: daemon MTA: cannot listen: Address already in use
>
> Jan 9 13:09:01 localhost sendmail[3360]: daemon MTA: problem creating SMTP
> socket
>
> Jan 9 13:09:01 localhost sm-msp-queue[3368]: starting daemon (8.13.8):
> queueing@01:00:00
>
> ------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ ----
>
> "Andrzej Adam Filip" wrote in message
> news:87abnf0yuk@tara.fsf.hobby-site.com...
>> "louis" writes:
>>
>>> Original problem, I could not get port 25 open.
>>> But now it opens but then closes after a few mins.
>>>
>>> I was able to open port 25 by modifying the sendmail.mc
>>> Find this line in /etc/mail/sendmail.mc:
>>>
>>> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
>>>
>>> and change it to:
>>>
>>> DAEMON_OPTIONS(`Port=smtp, Name=MTA')
>>>
>>> The default setting restricts sendmail to accepting connections only
>>> from
>>> the same host, for security; now it will accept connections from
>>> elsewhere.
>>>
>>>
>>>
>>> But now port 25 only stays open after a few mins and then closes and
>>> stays
>>> closed.
>>
>> Does sendmail report any problems in the log file?
>>
>> --
>> [pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
>> Open-Sendmail: http://open-sendmail.sourceforge.net/
>> If all else fails, immortality can always be assured by spectacular
>> error.
>> -- John Kenneth Galbraith
>> ----
>> http://groups.google.com/groups?selm=87abnf0yuk@tara.fsf.hob by-site.com
>
>