LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-04-2004, 09:57 AM   #1
goldcougar
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Rep: Reputation: 0
Question Firewall Settings- Mail Port 25


I have redhat 9 setup on a computer, and I am trying to setup a mail server. I have sendmail installed and running, but I can't connect to the computer through port 25. I have turned my firewall completely off, and restarted, but port 25 still shows as closed. When I run a portscan on it, this what it shows;

Open Port: 21 ftp
Open Port: 22 ssh
Open Port: 80 http
Open Port: 109 pop2
Open Port: 110 pop3
Open Port: 111 sunrpc
Open Port: 143 imap
Open Port: 443 https
Open Port: 993 imaps
Open Port: 995 pop3s
Open Port: 1024

I turned the firewall off through WebMin (a gui app for linux). I've also turned it off using the redhat seup program, but nothing works.

Is there a command I can run in the terminal of the Linux machine to view the firewall settings? Is it possible my changes just aren't being saved?
 
Old 08-04-2004, 10:36 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Look in /etc/mail/sendmail.cf for DaemonPortOptions and ClientPortOptions.
 
Old 08-04-2004, 01:41 PM   #3
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
goldcougar

As stickman stated look in /etc/mail/sendmail.cf this line should look like this

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

The dnl in front is important

To check that Sendmail is listening on all interfaces on the command line
Code:
$ netstat -an | grep :25 | grep tcp
Result should be
Code:
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
Finally some ISP's block port 25 so as not to allow open relays not sure if this is the case but it may be worth doing some investigation

Pete
 
Old 08-05-2004, 02:55 PM   #4
goldcougar
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you for the responses. However, when I type
Code:
$ netstat -an | grep :25 | grep tcp
I receive "-bash: $: command not found"

and here is the code from the config file:

# SMTP daemon options

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

# SMTP client options
#O ClientPortOptions=Family=inet, Address=0.0.0.0

It appears that they are commented out. Why is that?
 
Old 08-05-2004, 05:37 PM   #5
goldcougar
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Okay I figured it out I edidted the .mc file, then ran a m4 command and everything works now. Thanks.
 
Old 09-13-2004, 04:00 PM   #6
nickbritton
LQ Newbie
 
Registered: Jan 2004
Location: Omaha
Distribution: redhat
Posts: 2

Rep: Reputation: 0
What changes did you have to make to the sendmail.mc file? i am having the exact same errors
 
  


Reply



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
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Mail server port-scanning my firewall? bleunuit Linux - Networking 2 11-24-2004 05:14 PM
firewall- cannot modify settings rob7712 Linux - Networking 3 04-01-2003 04:13 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM
firewall settings? akebono Linux - General 0 09-27-2001 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration