Prompt will be given for entering an export password and this field can not be left blank!Ī password must be set for DavMail to work properly. Now your combined certificate and key needs to be converted to a pkcs12 file: sudo openssl pkcs12 -export -in /usr/lib/ssl/certs/davmail.pem -out /usr/lib/ssl/certs/davmail.p12 -name “davmail” Sudo chmod 600 /usr/lib/ssl/certs/davmail.pem You need to begin by joining cat with yourkey and certificate file: sudo -s cat /usr/lib/ssl/private/davmail.key /usr/lib/ssl/certs/davmail.crt > /usr/lib/ssl/certs/davmail.pemĪgain, permissions need to be set so that key file can only be accessed by the root: sudo chown root:root /usr/lib/ssl/certs/davmail.pem In case a certificate is purchased from a Certificate Authority, then those files should be utilized instead of davmail.key and davmail.crt. The examples that follow will utilize the certificate and key that were generated above. Since you now possess your own SSL certificate, convert it to a format that can be understood by DavMail. Now you possess an SSL certificate of your own! The certificate will expire in a year (365 days) with these settings. Use your private key for signing the certificate and the expiration date can be set using the -days argument: sudo openssl x509 -req -signkey /usr/lib/ssl/private/davmail.key -in /usr/lib/ssl/certs/davmail.csr -out /usr/lib/ssl/certs/davmail.crt -days 365 Please enter the following 'extra' attributes Organizational Unit Name (eg, section) :Keyboard Cat DepartmentĬommon Name (eg, your name or your server's hostname) : Organization Name (eg, company) :Tech-firm State or Province Name (full name) :Pokhara ![]() If you enter '.', the field will be left blank. There are quite a few fields but you can leave some blankįor some fields there will be a default value, What you are about to enter is what is called a Distinguished Name or a DN. Multiple questions will now be asked by OpenSSL.Ĭommon Nameis the only important field that needs to be set to your server’s IP address or its domain name which email clients (like or 123.123.123.123) can then access.You can leave all the other fields with anything or can set them to their defaults just by just pressing enter: You are about to be asked to enter information that will be incorporated into your certificate request. Now, a certificate signing request is to be created: sudo openssl req -new -key /usr/lib/ssl/private/davmail.key -out /usr/lib/ssl/certs/davmail.csr Sudo chmod 600 /usr/lib/ssl/private/davmail.key Use OpenSSL for generating a RSA key: sudo openssl genrsa -out /usr/lib/ssl/private/davmail.key 2048Įnsure that root owns the key and all the permissions are properly set: sudo chown root:root /usr/lib/ssl/private/davmail.key Alternatively, a self-signed certificate can be generated by following the steps given. If this is the case, then continue to the section of Configuring SSL below. In case the certificate has been bought from a Certificate Authority, then you should already possess your key and certificate. You need SSL private key to enable the SSL encryption, a SSL certificate in PEM format. Now save and close the configuration file. These are the ports options: davmail.imapPort=993 ![]() Your connection mode should be set to: davmail.enableEws=auto Set davmail.url to your Outlook Web Access/ Outlook Web App URL, that generally ends in /owa : davmail.url= Now remote mode needs to be enabled and bind address needs to be set to the IP address of your server or it can be set blank: davmail.allowRemote=true You can use any text editor of yours for creating one: sudo vi /etc/davmail.propertiesĭavMail should be set to server mode so that X11 is not required by it: rver=true Now DavMail can be installed with dpkg: sudo dpkg -i davmail_4.4.1-2225-1_all.debīy default, the configuration file of DavMail does not exist. These can be installed with apt: sudo apt-get install default-jre libswt-gtk-3-java libswt-cairo-gtk-3-jniĪ Debian package has been made available by theDavMail project on their website through [SourceForge (). ![]() Requires dependencies by Davmail for proper working. In case your workplace uses Microsoft Exchange for E-mail, and you want to Exchange E-mail account from those E-mail clients who do not provide support to Exchange protocol.ĭavMail offers a solution by converting Microsoft Exchange to open protocols like IMAP,POP, SMTP, Carddav, LDAP and Caldav.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |