wiki'd

by JoKeru

Dovecot POP3S Server

[cc lang='bash']
\$ yum install dovecot

\$ cd /etc/dovecot/
\$ vi dovecot.conf
\$ vi dovecot.pass

\$ service dovecot restart
\$ netstat -tulnp | grep dovecot
tcp 0 0 10.20.30.40:995 0.0.0.0:* LISTEN 24996/dovecot

\$ openssl s_client -connect 10.20.30.40:995
user root@jokeru.ro
pass r00t
list
retr 1
quit
[/cc]

/etc/dovecot/dovecot.conf
[cc lang="bash"]
# bind to ip
listen = 10.20.30.40
# enable protocol
protocols = pop3
# disable non-ssl
service pop3-login {
inet_listener pop3 {
port=0
}
}
# TLS settings
ssl_cert = ssl_key = # AUTH settings
auth_mechanisms = plain
disable_plaintext_auth = no
passdb {
driver = passwd-file
args = username_format=%u /etc/dovecot/dovecot.pass
}
userdb {
driver = static
args = uid=postfix gid=postfix
}
first_valid_uid = 89
mail_location = maildir:/home/mail/%d/%n
[/cc]

/etc/dovecot/dovecot.pass
[cc lang="bash"]
root@jokeru.ro:{PLAIN}r00t
[/cc]

Comments