Dovecot IMAPS on CentOS 4.x, Mail.app on OSX 10.4.x --------------------------------------------------- 2008-03-31 If your default cert expires and you are tired of clicking continue everytime you open mail.app on your OSX client machine. 1. In case you screw up, make some backups of these files first! a. /usr/share/doc/dovecot-0.99.11/dovecot-openssl.cnf b. /usr/share/ssl/private/dovecot.pem c. /usr/share/ssl/certs/dovecot.pem d. /usr/share/doc/dovecot-0.99.11/mkcert.sh 2. vi /usr/share/doc/dovecot-0.99.11/mkcert.sh set the filenames imapd.pem to dovecot.pem and save the change 3. vi /usr/share/doc/dovecot-0.99.11/dovecot-openssl.cnf set the C, ST, L, O, OU, CN and emailAddress to your desired settings 4. chmod +x /usr/share/doc/dovecot-0.99.11/mkcert.sh 5. run mkcert.sh make sure you have a dovecot.pem in the private and certs dirs 6. service dovecot stop 7. service dovecot start 8. Make a copy of the dovecot.pem from the certs directory in a place where your OSX client can access it. Double-click the file and it will import into your Keychain. Choose X509Anchor. 9. launch Mail.app and you should go directly to your email, no need to click continue on your expired cert.