vi /etc/dovecot.conf
protocols=pop imap pops3 imaps3
ssl_cert_file=/etc/pki/dovecot/certs/dovecot.perm
ssl-key_file=/etc/pki/dovecot/private/dovecot.perm
pop3_uidl_format=%08XU%08XV 

two ways to generate dovecot.perm
 cd /usr/share/doc/example/dovecot-1.0/
./mkcert.sh
or cd /etc/pki/tls/certs
make dovecot.pem
# configure to deny pop and imap from ourside LAN as well as station20.example.com
vi /etc/hosts.deny
dovecot: ALL EXCEPT .example.com EXCEPT staion20.example.com
 
#configure to allow pop and imap from domain example.com and cracker.org
vi /etc/host.deny
dovecot: ALL EXCEPT .example.com, .cracker.org
 
#user jeff  should able to access imap over ssl
vi /etc/dovecot.conf
protocol=imap imaps
ssl_cert_file=/etc/pki/dovecot/certs/dovecot.pem
ssl_key_file=/etc/pki/dovecot/private/dovecot.pem
vi /etc/pki/dovecot/dovecot-openssl.cnf
service dovecot restart
 
#