Chkconfig dovecot on
Vi /etc/dovecot.conf
找到#protocols = imap imaps
並改成protocols = pop3
service dovecot restart
netstat –ntlup grep 110
imaps
vi /etc/dovecot
找到pop3將”#”去除並加入iamps
找到iamps_listen 加上192.168.1.196
找到 ssl_cert_file= 並將兩行值皆改為
/usr/share/ssl/certs/dovecot.pem
cd /usr/share/ssl/certs/ 將原有dovecot.pem 刪除
make dovecot.pem
service dovecot restart
netstat –ntlup grep dovecot
不允許192.168.0.0/24網段進行存取
iptable –A INPUT –p tcp –dport 110 –s 192.168.0.0/255.255.255.0 –j REJECT
iptable –A INPUT –p tcp –dport 993 –s 192.168.0.0/255.255.255.0 –j REJECT
service iptables save
沒有留言:
張貼留言