LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to open port 25 for remote machines (https://www.linuxquestions.org/questions/linux-security-4/how-to-open-port-25-for-remote-machines-43326/)

abd_bela 01-30-2003 03:31 AM

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

unSpawn 01-30-2003 03:47 AM

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.

abd_bela 01-30-2003 06:02 AM

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

unSpawn 01-30-2003 06:45 AM

LOL! Crap, that'll teach me to read a thread twice before posting :-]
Hope some Postifx user will come along and post the answer.

mcleodnine 01-30-2003 08:01 AM

/etc/postfix/master.cf i believe. Have a look at the smtp lines.


All times are GMT -5. The time now is 08:48 AM.