= Dovecot = Dovecot is a Mail Delivery Agent (IMAP, POP3), written with security primarily in mind. == Install and configure in Ubuntu 14.04 LTS == {{{#!highlight sh apt install dovecot-imapd dovecot-pop3d # create self-signed ssl sertificate? yes # hostname: mail.example.org service dovecot status postconf -e 'home_mailbox = Maildir/' service postfix restart vim /etc/dovecot/conf.d/10-mail.conf #mail_location = maildir:/home/%u/Maildir service dovecot restart openssl s_client -connect localhost:993 # check IMAPS connection, port 993 }}} {{{ A1 LOGIN userx passwordx A2 LIST "" "*" A3 EXAMINE INBOX }}} == Create self signed cert == {{{#!highlight bash cd /etc/dovecot openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr ### Country Name (2 letter code) [AU]:PT State or Province Name (full name) [Some-State]: Locality Name (eg, city) []: Organization Name (eg, company) [Internet Widgits Pty Ltd]:mail.bitarus.mooo.com Organizational Unit Name (eg, section) []:mail.bitarus.mooo.com Common Name (e.g. server FQDN or YOUR name) []:mail.bitarus.mooo.com Email Address []:vitor@bitarus.mooo.com Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: #### openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt chmod o= server.key openssl x509 -in server.crt -text service dovecot restart openssl s_client -connect mail.bitarus.mooo.com:993 }}}