How can we help?


Configuration of CalDAV and CardDAV via SSL

Stewart -

I want to enable SSL for my calendar and contacts.


  • On-Premise Server + WebMail Installations: Version 6.0 > Current Version
  • Webmail Only Installations: Version 6.0 > Current Version

By default Atmail is installed for CalDAV/CardDAV to listen on port 8008 for connections. Some clients such as under OS-X will attempt to connect via SSL on port 8443, encrypting all calendar data between the client and server.


  1. To enable SSL CalDAV/CardDAV connections on your server, specify a new VirtualHost, for example:
    # SSL version for CalDAV/CardDAV
    Listen 8443

    SSLEngine on
    SSLCertificateFile /usr/local/atmail/mailserver/ssl/yourssl.crt
    SSLCertificateKeyFile /usr/local/atmail/mailserver/ssl/yourssl.key.nopass

    # Change to your DocumentRoot, this is the default path for Atmail
    DocumentRoot /usr/local/atmail/webmail/dav/
    RewriteEngine On

    # CardDAV iOS device auto-probe redirect
    RewriteRule ^/\.well-known\/carddav /mail/dav/ [R] RewriteRule ^/(.*)$ /rootserver.php [L]
  2. Restart Apache, and desktop clients such as iCal will attempt to connect via CalDAV (SSL, port 8443) by default, when creating a new account.


Contact our support team

+61 (7) 5357 6605