Which PORT

Brian Astill bastill at adam.com.au
Wed May 3 01:05:33 CST 2006


I'm getting confused <sob>

etc/services says (in part!  :-) )
smtp		25/tcp		mail

 # netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         
State       PID/Program name
tcp        0      0 127.0.0.1:60000         0.0.0.0:*               
LISTEN     8265/postgrey.pid -
tcp        0      0 127.0.0.1:32769         0.0.0.0:*               
LISTEN     8214/hpiod
tcp        0      0 127.0.0.1:32770         0.0.0.0:*               
LISTEN     8237/python
tcp        0      0 0.0.0.0:32771           0.0.0.0:*               
LISTEN     8985/skype
tcp        0      0 127.0.0.1:631           0.0.0.0:*               
LISTEN     12778/cupsd
tcp        0      0 0.0.0.0:25              0.0.0.0:*               
LISTEN     8428/master
tcp6       0      0 :::22                   :::*   

# postgrey --inet=25
2006/05/03-10:23:17 postgrey (type Net::Server::Multiplex) 
starting! pid(15031)
Binding to TCP port 25 on host localhost
2006/05/03-10:23:17 Can't connect to TCP port 25 on localhost 
[Address already in use]
  at line 86 in file /usr/share/perl5/Net/Server/Proto/TCP.pm
2006/05/03-10:23:17 Server closing!

# postgrey --inet=60000
2006/05/03-10:23:51 postgrey (type Net::Server::Multiplex) 
starting! pid(15032)
Binding to TCP port 60000 on host localhost
2006/05/03-10:23:51 Can't connect to TCP port 60000 on localhost 
[Address already in use]
  at line 86 in file /usr/share/perl5/Net/Server/Proto/TCP.pm
2006/05/03-10:23:51 Server closing!

What (if anything) am I doing wrong to get postgrey to monitor my 
mail?

-- 
Regards,
Brian


More information about the linuxsa mailing list