![来自 debian 存储库的 dovecot 和 postfix](https://linux22.com/image/617787/%E6%9D%A5%E8%87%AA%20debian%20%E5%AD%98%E5%82%A8%E5%BA%93%E7%9A%84%20dovecot%20%E5%92%8C%20postfix.png)
我dovecot dovecoot-mysql postfix and postfix-mysql
从安装debian repository 7
。
/etc/init.d/postfix start
我开始/etc/init.d/dovecot start
但是当我使用时,nmap localhost
我看到以下输出:root@sito:/etc/dovecot# nmap localhost
Starting Nmap 6.00 ( http://nmap.org ) at 2013-09-12 07:35 IRDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000030s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 993 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
3128/tcp open squid-http
3306/tcp open mysql
但是当我使用时,netstat -nap |egrep -i dovecot
我看到以下输出:
root@sito:/home/mohsen# netstat -nap |egrep -i dovecot
unix 2 [ ACC ] STREAM LISTENING 69634 18414/dovecot /var/run/dovecot/anvil
unix 2 [ ACC ] STREAM LISTENING 69638 18414/dovecot /var/run/dovecot/anvil-auth-penalty
unix 2 [ ACC ] STREAM LISTENING 65456 18414/dovecot /var/run/dovecot/stats
unix 2 [ ACC ] STREAM LISTENING 65459 18414/dovecot /var/run/dovecot/login/ssl-params
unix 2 [ ACC ] STREAM LISTENING 65463 18414/dovecot /var/run/dovecot/replicator
unix 2 [ ACC ] STREAM LISTENING 65467 18414/dovecot /var/run/dovecot/replication-notify
unix 2 [ ACC ] STREAM LISTENING 65472 18414/dovecot /var/run/dovecot/log-errors
unix 2 [ ACC ] STREAM LISTENING 65476 18414/dovecot /var/run/dovecot/ipc
unix 2 [ ACC ] STREAM LISTENING 65478 18414/dovecot /var/run/dovecot/login/ipc-proxy
unix 2 [ ACC ] STREAM LISTENING 65482 18414/dovecot /var/run/dovecot/indexer-worker
unix 2 [ ACC ] STREAM LISTENING 65486 18414/dovecot /var/run/dovecot/indexer
unix 2 [ ACC ] STREAM LISTENING 65490 18414/dovecot /var/run/dovecot/doveadm-server
unix 2 [ ACC ] STREAM LISTENING 65494 18414/dovecot /var/run/dovecot/dns-client
unix 2 [ ACC ] STREAM LISTENING 65496 18414/dovecot /var/run/dovecot/login/dns-client
unix 2 [ ACC ] STREAM LISTENING 65500 18414/dovecot /var/run/dovecot/director-admin
unix 2 [ ACC ] STREAM LISTENING 65504 18414/dovecot /var/run/dovecot/director-userdb
unix 2 [ ACC ] STREAM LISTENING 65508 18414/dovecot /var/run/dovecot/dict
unix 2 [ ACC ] STREAM LISTENING 65512 18414/dovecot /var/run/dovecot/config
unix 2 [ ACC ] STREAM LISTENING 65514 18414/dovecot /var/run/dovecot/login/login
unix 2 [ ACC ] STREAM LISTENING 65518 18414/dovecot /var/run/dovecot/auth-login
unix 2 [ ACC ] STREAM LISTENING 65522 18414/dovecot /var/run/dovecot/auth-client
unix 2 [ ACC ] STREAM LISTENING 65526 18414/dovecot /var/run/dovecot/auth-userdb
unix 2 [ ACC ] STREAM LISTENING 65530 18414/dovecot /var/run/dovecot/auth-master
unix 2 [ ACC ] STREAM LISTENING 65534 18414/dovecot /var/run/dovecot/auth-worker
unix 3 [ ] STREAM CONNECTED 65453 18414/dovecot
unix 3 [ ] STREAM CONNECTED 65452 18414/dovecot
unix 2 [ ] DGRAM 65448 18414/dovecot
我的问题是,在哪儿dovecot
?我没看到它ports
....
答案1
通过包含 netstat 输出,您在某种程度上回答了您自己的问题;以“unix”开头的行是 unix 套接字,而不是 tcp 套接字(端口)。
如上所述,您需要先配置 Dovecot,然后它才能实际启动和运行。