port 25 closed

port 25 closed

am 08.01.2008 19:20:44 von Louis

Hi simple newbie question.

Redhat Enterprise 5.
Sendmail latest release.

I know the default port of sendmail uses port 25.
I disable Sendmail and in the Security Level Configuration I have allowed
port 25. When I run nmap it shows that port 25 is closed.
Not sure why.
Can anyone help.
Thank you in advance.

Re: port 25 closed

am 08.01.2008 19:39:50 von Shion

louis wrote:
> Hi simple newbie question.
>
> Redhat Enterprise 5.
> Sendmail latest release.
>
> I know the default port of sendmail uses port 25.
> I disable Sendmail and in the Security Level Configuration I have allowed
> port 25. When I run nmap it shows that port 25 is closed.

By default sendmail is configured to only listen on 127.0.0.1, check your
/etc/mail/sendmail.mc and do the changes that are told about in the comments
to allow sendmail to listen on other networks.


--

//Aho

Re: port 25 closed

am 08.01.2008 21:35:57 von Louis

great that helped!!!
Thank you!!!

"J.O. Aho" wrote in message
news:5uhubnF1i5jpvU1@mid.individual.net...
> louis wrote:
>> Hi simple newbie question.
>>
>> Redhat Enterprise 5.
>> Sendmail latest release.
>>
>> I know the default port of sendmail uses port 25.
>> I disable Sendmail and in the Security Level Configuration I have allowed
>> port 25. When I run nmap it shows that port 25 is closed.
>
> By default sendmail is configured to only listen on 127.0.0.1, check your
> /etc/mail/sendmail.mc and do the changes that are told about in the
> comments
> to allow sendmail to listen on other networks.
>
>
> --
>
> //Aho

Re: port 25 closed

am 09.01.2008 16:55:17 von Louis

I am able to now open port 25. by modifying
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.



Now my next problem is Port 25 does not stay open





"J.O. Aho" wrote in message
news:5uhubnF1i5jpvU1@mid.individual.net...
> louis wrote:
>> Hi simple newbie question.
>>
>> Redhat Enterprise 5.
>> Sendmail latest release.
>>
>> I know the default port of sendmail uses port 25.
>> I disable Sendmail and in the Security Level Configuration I have allowed
>> port 25. When I run nmap it shows that port 25 is closed.
>
> By default sendmail is configured to only listen on 127.0.0.1, check your
> /etc/mail/sendmail.mc and do the changes that are told about in the
> comments
> to allow sendmail to listen on other networks.
>
>
> --
>
> //Aho

Re: port 25 closed

am 09.01.2008 17:47:15 von Shion

louis wrote:
>> By default sendmail is configured to only listen on 127.0.0.1, check your
>> /etc/mail/sendmail.mc and do the changes that are told about in the
>> comments to allow sendmail to listen on other networks.
>
> I am able to now open port 25. by modifying
> 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.
>
> Now my next problem is Port 25 does not stay open

I don't have any DEAMON_OPTIONS at all, at it works fine for me, I suggest you
comment out the line completely.

Also check your /var/log/message for some information.

--

//Aho