$ upgradepkg --install-new dovecot-2.0.15-i686-1cf.txzThen, start for configuration
$ cp -v /usr/doc/dovecot-2.0.15/example-config/* /etc/dovecot/First create user and group for dovecot
groupadd dovecot useradd -g dovecot dovecot useradd -g dovecot dovenullHere Bellow is my worked configuration : Dovecot.conf
# grep -v "#" /etc/dovecot/dovecot.conf protocols = imap pop3 listen = * base_dir = /var/run/dovecot/ login_greeting = Dovecot ready. dict {} !include conf.d/*.conf10-auth.conf
$ grep -v "#" /etc/dovecot/conf.d/10-auth.conf disable_plaintext_auth = yes auth_mechanisms = plain login !include auth-system.conf.ext10-mail.conf
$ grep -v "#" /etc/dovecot/conf.d/10-mail.conf mail_location = maildir:%h/Maildir auth_socket_path = /var/run/dovecot/auth-userdb mail_plugin_dir = /usr/lib/dovecot mail_plugins = $mail_plugins10-master.conf
$ grep -v "#" /etc/dovecot/conf.d/10-master.conf service imap-login { inet_listener imap { } inet_listener imaps { }} service pop3-login { inet_listener pop3 { } inet_listener pop3s { }} service lmtp { unix_listener lmtp { }} service imap {} service pop3 {} service auth { unix_listener auth-userdb { }} service auth-worker {} service dict { unix_listener dict { }}Dovecot-openssl.cnf
$ grep -v "#" /usr/doc/dovecot-2.0.15/dovecot-openssl.cnf [ req ] default_bits = 1024 encrypt_key = yes distinguished_name = req_dn x509_extensions = cert_type prompt = no [ req_dn ] C=ID ST= Indonesia L=MyCity O=Dovecot OU=IMAP server CN=imap.despro.lan emailAddress=postmaster@despro.lan [ cert_type ] nsCertType = server
$ cd /usr/doc/dovecot-2.0.15/ $ sh mkcert.shthis action will create /etc/ssl/private/dovecot.pem and /etc/ssl/certs/dovecot.pem have been created. Remember their locations because you have to insert them in 10-ssl.conf
10-ssl.conf
$ grep -v "#" /etc/dovecot/conf.d/10-ssl.conf ssl_cert = ssl_key =20-imap.conf
$ grep -v "#" /etc/dovecot/conf.d/20-imap.conf protocol imap {mail_plugins = $mail_plugins imap_quota autocreate}
$ grep -v "#" /etc/dovecot/conf.d/20-pop3.conf protocol pop3 {mail_plugins = $mail_plugins}90-plugin.conf
$ grep -v "#" /etc/dovecot/conf.d/90-plugin.conf plugin { autocreate = Sent autocreate2 = Drafts autocreate3 = Junk autocreate4 = Trash autosubscribe = Sent autosubscribe2 = Drafts autosubscribe3 = Junk autosubscribe4 = Trash }90-quota.conf
$ grep -v "#" /etc/dovecot/conf.d/90-quota.conf plugin { quota = maildir:User quota }auth-system.conf.ext
$ grep -v "#" /etc/dovecot/conf.d/auth-system.conf.ext passdb { driver = shadow } userdb { driver = passwd }Done
2 comments:
awesome help, TY
Post a Comment