I installed nmap on OS X using brew.
I started to test it and something weird is happening. Every time I use nmap with the option -sT, it always shows the ports 110, 143, 993 and 995 as opened. I checked my computer, looking for process that are listening on that ports, and I could not find them. I tried with other computers and different servers, and it is still showing me that ports as opened.
$ sudo nmap -sT localhost
Starting Nmap 7.12 ( https://nmap.org ) at 2016-07-27 11:24 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0012s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 499 filtered ports, 495 closed ports
PORT STATE SERVICE
80/tcp open http
110/tcp open pop3
143/tcp open imap
443/tcp open https
993/tcp open imaps
995/tcp open pop3s
Nmap done: 1 IP address (1 host up) scanned in 2.93 seconds
$
Is that correct? Am I doing something wrong? Is it a bug?
EDIT: I ran sudo netstat -anltv | grep LISTEN and I didn't see a process listening on one of those ports.
tcp4 0 0 127.0.0.1.17603 *.* LISTEN 131072 131072 510 0
tcp4 0 0 127.0.0.1.17600 *.* LISTEN 131072 131072 510 0
tcp4 0 0 *.17500 *.* LISTEN 131072 131072 510 0
tcp6 0 0 *.17500 *.* LISTEN 131072 131072 510 0
tcp4 0 0 127.0.0.1.31743 *.* LISTEN 131072 131072 578 0
tcp4 0 0 127.0.0.1.31742 *.* LISTEN 131072 131072 578 0
tcp6 0 0 ::1.12993 *.* LISTEN 131072 131072 358 0
tcp4 0 0 127.0.0.1.12993 *.* LISTEN 131072 131072 358 0
tcp6 0 0 ::1.12995 *.* LISTEN 131072 131072 358 0
tcp4 0 0 127.0.0.1.12995 *.* LISTEN 131072 131072 358 0
tcp6 0 0 ::1.12143 *.* LISTEN 131072 131072 358 0
tcp4 0 0 127.0.0.1.12143 *.* LISTEN 131072 131072 358 0
tcp6 0 0 ::1.12110 *.* LISTEN 131072 131072 358 0
tcp4 0 0 127.0.0.1.12110 *.* LISTEN 131072 131072 358 0
tcp6 0 0 ::1.12443 *.* LISTEN 131072 131072 358 0
tcp4 0 0 127.0.0.1.12443 *.* LISTEN 131072 131072 358 0
tcp6 0 0 ::1.12080 *.* LISTEN 131072 131072 358 0
tcp4 0 0 127.0.0.1.12080 *.* LISTEN 131072 131072 358 0
tcp4 0 0 127.0.0.1.6437 *.* LISTEN 131072 131072 98 0
tcp4 0 0 127.0.0.1.6436 *.* LISTEN 131072 131072 98 0
tcp4 0 0 127.0.0.1.6439 *.* LISTEN 131072 131072 98 0
tcp4 0 0 127.0.0.1.6438 *.* LISTEN 131072 131072 98 0