Connecting Tech Pros Worldwide Forums | Help | Site Map

Open smtps port on centOS linux

Member
 
Join Date: Oct 2007
Posts: 110
#1: Mar 13 '08
I'm trying to run a php based mailer to send e-mail via my gmail, and apparently I need to connect on port 465.

I've checked which ports are open on my server, and 465 is closed.

I've tried running
open 465, and open localhost:465. I didn't get errors on either of these commands, but following up with nmap -st localhost does not show port 465 being open.

I've searched high and low for a command to open the port, but couldn't find anything userful.

The OS is CentOS,
If anybody could point me in the right direction, I would be grateful.

Pete

sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#2: Mar 19 '08

re: Open smtps port on centOS linux


Did you try editing the iptables settings?

There are a few (hopefully) useful links returned by a Google search of "centos open port."
Member
 
Join Date: Oct 2007
Posts: 110
#3: Mar 26 '08

re: Open smtps port on centOS linux


Thanks sicarie,

I thought their was a command which would open the port.
I did end up editing my 'sendmail' config, but within a few hours, it seems somebody was able to highjack my server and use my e-mail domain to send spam, so I shut it down again.

I guess it's better to leave this stuff to the pros. Seems port 465 is closed for good reason.
micmast's Avatar
Familiar Sight
 
Join Date: Mar 2008
Location: Belgium
Posts: 137
#4: Mar 28 '08

re: Open smtps port on centOS linux


as root
iptables -A INPUT -p tcp --sport <portnumber> -j ACCEPT

that will open that port on your firewall
but then again, I don't get what you are trying to achieve, could you give me a bit more information? Another thing you might want to check: google uses ssl imap to retreive mail...
Reply