Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-04-2002, 12:37 AM   #1
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88

Rep: Reputation: 15
Why my RH 7.2's smtp port haven't open default?

Hi all,

My Linux is Red Hat Linux 7.2.

Now, I have a problems... it is very trouble for me, it is the SMTP service is not work ...

My Linux is setting a firewall, but I setting let the SMTP, HTTP, SSH, FTP to across the firewall....

When I enter "nmap"
It show the SSH, HTTP, POP3 port are opened, but haven't see the SMTP port are open...

My sendmail is settied will run after each time boot up...

Can anyone let me know how to open the SMTP port?

Else now my mail server just can send e-mail to outside, but outside like YAHOO, can't send any e-mail to our server's user to recevied the e-mail

Old 06-04-2002, 01:12 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Your best option is to setup ipchains to open port 25 from my understanding. I've never messed with setting up a mail server personally so I couldn't tell you how exactly how to do it. But from what I have read or seen so far, ipchains or setting up your firewall rules is the best way I would presume.

Try reading some of the howto's and the ipchains howto here:
Old 06-04-2002, 01:37 AM   #3
Registered: May 2001
Posts: 29,359
Blog Entries: 55

Rep: Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546Reputation: 3546
Look in /etc/mail/ for "DAEMON_OPTIONS", the "Addr" part, meaning the interface it listens on.
Don't forget to rebuild /etc/ and restart sendmail after you change it.
Old 06-04-2002, 07:24 AM   #4
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88

Original Poster
Rep: Reputation: 15
Question My /etc/mail/ setting is show below, what is wrong?

dnl This changes sendmail to only listen on the loopback device
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')
dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.

The questions is do I need add this code to it then the sendmail then will open the SMTP port to received the outside's e-mail?

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


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP Port always open AJones Linux - Security 2 08-05-2005 10:34 PM
Port 67 (bootPC) & 68 (bootPS) open by default -- why? Kropotkin Linux - Security 2 11-12-2004 10:53 PM
Help! SMTP port 25 on RH 8.0 - can't open it! albracco Linux - General 9 04-21-2003 03:41 PM
how to open SMTP port ? importboy03 Linux - Networking 4 02-17-2003 02:12 AM
Port 25 not open for SMTP Jim Miller Linux - Networking 6 11-18-2001 12:56 AM > Forums > Linux Forums > Linux - General

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

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