LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-30-2003, 03:31 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
how to open port 25 for remote machines


Hi, javascript:smilie('')
How to open the 25 port for the remote machine

I run the postfix server for the mail.

from the localhost I can access to the server and when i try the command
nmap , I get port 25 open

but not from the same machine with the network name ( mailiap which is the same machine as locallhost ) here are the outpout

[root@webiap root]# nmap -sT -O webiap

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on mail.iap.dz (172.19.10.50):
(The 1586 ports scanned but not shown below are in state: closed)
Port State Service
7/tcp open echo
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet here NO 25 port
53/tcp open domain
80/tcp open http
106/tcp open pop3pw
110/tcp open pop-3
143/tcp open imap2
443/tcp open https
515/tcp open printer
873/tcp open rsync
993/tcp open imaps
995/tcp open pop3s
6000/tcp open X11
Remote OS guesses: Linux Kernel 2.4.0 - 2.5.20, Linux 2.5.25 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)

Nmap run completed -- 1 IP address (1 host up) scanned in 7 seconds
[root@webiap root]# nmap -sT -O localhost

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on localhost (127.0.0.1):
(The 1584 ports scanned but not shown below are in state: closed)
Port State Service
7/tcp open echo
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp THE PORT IS OPEN
53/tcp open domain
80/tcp open http
106/tcp open pop3pw
110/tcp open pop-3
143/tcp open imap2
443/tcp open https
515/tcp open printer
873/tcp open rsync
953/tcp open rndc
993/tcp open imaps
995/tcp open pop3s
6000/tcp open X11
Remote OS guesses: Linux Kernel 2.4.0 - 2.5.20, Linux 2.5.25 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)

Nmap run completed -- 1 IP address (1 host up) scanned in 5 seconds

thanks for help
 
Old 01-30-2003, 03:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In /etc/mail/sendmail.mc look for the line "DAEMON_OPTIONS" and change it to read:
DAEMON_OPTIONS(`Addr=X,Name=MTA')
where X is the IP address of the interface you want it to listen on.
For security reasons in RH it defaults to localhost at install.
Rebuild your sendmail.cf using m4: m4 /etc/mail/sendmail.mc > /etc/sendmail.cf, or using mailconf: mailconf --generatecf and restart sendmail.
 
Old 01-30-2003, 06:02 AM   #3
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Original Poster
Rep: Reputation: 31
thank you, unSpawn , for reply,
now the port 25 is open, when I ran the sendmail service
but I configure the postfix server.

I can receive the message from the same machine by using the webiap ( or IP address I ) name, but not from a remote machine, from which
nmap -sT -O webiap command works correctly

sorry for disturbing I am very confuse, excuse my idiot question

thanks a lot
 
Old 01-30-2003, 06:45 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
LOL! Crap, that'll teach me to read a thread twice before posting :-]
Hope some Postifx user will come along and post the answer.
 
Old 01-30-2003, 08:01 AM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
/etc/postfix/master.cf i believe. Have a look at the smtp lines.
 
  


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
Remote backup of Windows(XP) machines on user logout rdk Linux - General 2 09-26-2005 05:44 PM
Multiple Machines behind single Static IP - failing remote ssh Animalector Linux - Security 8 08-18-2005 06:01 PM
Can't open GUI of programs in remote machines by telnet and setting DISPLAY..... bioinfo Linux - Networking 2 10-02-2004 08:26 AM
remote controll xp machines via redhat 9.0 redlinux04 Linux - Networking 9 09-08-2004 01:53 PM
remote file access (non-networked machines) mikescar Linux - Newbie 3 02-03-2004 06:01 PM

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

All times are GMT -5. The time now is 08:56 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