DavMail

From ToXiC

Jump to: navigation, search

Contents

Davmail on Synology

This section is a simple copy of this tutorial except the Config file sub-section.

Prerequisites

  • Java already installed on your Synology box.
  • Possibly, you may need the ipkg and other enhancements, although I tried to avoid dependencies on them.

Configuration

  • The initial basic configuration (Exchange webmail URL, and path to Java runtime environment) must be passed to the package build script, as described below.
  • The installed package doesn't yet have a UI, so if you need to do any further configuration beyond the basics, you'll have to tweak the configuration on the live Synology box by editing /var/packages/DavMail/target/davmail.properties from the command line.

To build your own package

  • Copy the script from http://pastie.org/6119067 into a file called 'build-davmail-synology-package.sh' and save it on your Synology, such as in the public/ directory
  • Figure out what your Exchange webmail URL is-- see the Davmail documentation if you are confused. It usually looks like this: http://webmail.example.com/owa/ or http://webmail.example.com/exchange/
  • Log in via SSH and figure out where your Java runtime environment is. For example, my JRE_HOME was /volume1/@appstore/java6/jre.
  • Change to the public/ directory (or wherever you saved the build script) and run the script by typing:
/bin/sh build-davmail-synology-package.sh "EXCHANGE_WEBMAIL_URL" "JRE_HOME"

Of course, substitute your actual Exchange webmail URL and JRE_HOME when you call it.

  • If the build script runs successfully, it will tell you where the package file is when it is done. Copy that to a place you can access it, then use the DSM Package Center interface in your browser to upload and install it.

Config file

Modify the file located at

/volume1/@appstore/DavMail/davmail.properties

And use the following instead :

#DavMail settings
#Sun Dec 08 18:44:40 CET 2013
davmail.allowRemote=true 
davmail.bindAddress= 
davmail.caldavAlarmSound=
davmail.caldavEditNotifications=false
davmail.caldavPastDelay=90 
davmail.caldavPort=1081
davmail.clientSoTimeout= 
davmail.defaultDomain=WIPRO
davmail.disableGuiNotifications=false
davmail.disableUpdateCheck=false 
davmail.enableEws=auto 
davmail.enableKeepAlive=false
davmail.enableKerberos=false 
davmail.enableProxy=false
davmail.folderSizeLimit= 
davmail.forceActiveSyncUpdate=false
davmail.imapAutoExpunge=true 
davmail.imapIdleDelay= 
davmail.imapPort=1144
davmail.keepDelay=300
davmail.ldapPort=1390
davmail.logFilePath=/tmp/davmail_hard.log
davmail.logFileSize=100000 
davmail.noProxyFor=
davmail.popMarkReadOnRetr=false
davmail.popPort=1110 
davmail.proxyHost= 
davmail.proxyPassword= 
davmail.proxyPort= 
davmail.proxyUser= 
davmail.sentKeepDelay=900
davmail.server=true
davmail.server.certificate.hash= 
davmail.showStartupBanner=true 
davmail.smtpPort=1026
davmail.smtpSaveInSent=true
davmail.ssl.clientKeystoreFile=
davmail.ssl.clientKeystorePass=
davmail.ssl.clientKeystoreType=
davmail.ssl.keyPass= 
davmail.ssl.keystoreFile=
davmail.ssl.keystorePass=
davmail.ssl.keystoreType=
davmail.ssl.nosecurecaldav=false 
davmail.ssl.nosecureimap=false 
davmail.ssl.nosecureldap=false 
davmail.ssl.nosecurepop=false
davmail.ssl.nosecuresmtp=false 
davmail.ssl.pkcs11Config=
davmail.ssl.pkcs11Library= 
davmail.url=https\://webmail2.wipro.com/ews/exchange.asmx
davmail.useSystemProxies=false
log4j.rootLogger=WARN
log4j.logger.davmail=WARN
log4j.logger.org.apache.commons.httpclient=WARN
log4j.logger.httpclient.wire=WARN
davmail.logFilePath=/var/packages/DavMail/target/log/davmail.log

Older Davmail Settings (outdated)

Davmail allows to access an exchange server using standard IMAP and POP protocols.

An example to use Wipro OWA (Outlook Web Access) with Webdav :

  1. Deploy davmail-4.1.0-2042.war on a tomcat instance
  2. Configure WEB-INF\classes\davmail.properties as follows :

davmail.url=https://webmail.wipro.com/
davmail.enableEws=false
davmail.popPort=1110
davmail.imapPort=1143
davmail.smtpPort=1025
davmail.caldavPort=1080
davmail.ldapPort=1389
davmail.keepDelay=30
davmail.sentKeepDelay=90
davmail.caldavPastDelay=90
davmail.imapIdleDelay=
davmail.useSystemProxies=false
davmail.enableProxy=false
davmail.proxyHost=
davmail.proxyPort=
davmail.proxyUser=
davmail.proxyPassword=
davmail.noProxyFor=
davmail.ssl.keystoreType=JKS
davmail.ssl.keyPass=
davmail.ssl.keystoreFile=
davmail.ssl.keystorePass=
davmail.smtpSaveInSent=true
davmail.server=true
davmail.server.certificate.hash=
davmail.bindAddress=
davmail.clientSoTimeout=
davmail.allowRemote=true
davmail.disableUpdateCheck=false
log4j.rootLogger=WARN
log4j.logger.davmail=DEBUG
log4j.logger.org.apache.commons.httpclient=WARN
log4j.logger.httpclient.wire=WARN
davmail.logFilePath=/var/log/davmail.log

Personal tools