Open smtps port on centOS linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pedalpete
    New Member
    • Oct 2007
    • 109

    #1

    Open smtps port on centOS linux

    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
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Did you try editing the iptables settings?

    There are a few (hopefully) useful links returned by a Google search of "centos open port."

    Comment

    • pedalpete
      New Member
      • Oct 2007
      • 109

      #3
      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.

      Comment

      • micmast
        New Member
        • Mar 2008
        • 144

        #4
        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...

        Comment

        Working...