LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-04-2002, 12:37 AM   #1
explorer1979
Member
 
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 205.120.55.156"
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, EXCITE.com can't send any e-mail to our server's user to recevied the e-mail

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

Rep: Reputation: 269Reputation: 269Reputation: 269
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: http://www.tldp.org/HOWTO/IPCHAINS-HOWTO.html
 
Old 06-04-2002, 01:37 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

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

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

dnl This changes sendmail to only listen on the loopback device 127.0.0.1
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=127.0.0.1, 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=205.120.55.156, Name=MTA')
 
  


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:37 AM.

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