2008-02-14 10:41:02 -05:00
|
|
|
<?xml version="1.0"?>
|
2009-08-07 06:26:29 -04:00
|
|
|
<document xmlns="http://maven.apache.org/XDOC/2.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd">
|
2008-02-14 10:41:02 -05:00
|
|
|
|
|
|
|
<properties>
|
2010-07-26 12:10:37 -04:00
|
|
|
<title>DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway - Server setup</title>
|
2008-02-14 10:41:02 -05:00
|
|
|
<author email="mguessan@free.fr">Mickael Guessant</author>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2008-10-28 18:00:59 -04:00
|
|
|
<section name="DavMail Setup as a standalone server">
|
2008-02-14 10:41:02 -05:00
|
|
|
<p>Prerequisite : Sun J2SE 1.5 or 1.6.
|
|
|
|
</p>
|
|
|
|
|
2010-08-26 04:39:38 -04:00
|
|
|
<p>Davmail Gateway can run in server mode as a gateway between the mail
|
2008-02-14 10:41:02 -05:00
|
|
|
client and the Outlook Web Access (Exchange) server.
|
2010-08-26 04:39:38 -04:00
|
|
|
In server mode Davmail can run on any Java supported platform.
|
2008-02-14 10:41:02 -05:00
|
|
|
This mode was tested successfully with the Iphone and should work with
|
2010-08-26 04:39:38 -04:00
|
|
|
any phone with POP/IMAP/SMTP/LDAP/Caldav/Carddav client.
|
|
|
|
In this mode many users can share the same DavMail instance.
|
2008-02-14 10:41:02 -05:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>Download the generic DavMail package from Sourceforge and uncompress it with
|
2010-08-26 04:39:38 -04:00
|
|
|
your favorite tool, e.g. on Linux: <code>unzip davmail-*.zip</code>.
|
2008-02-14 10:41:02 -05:00
|
|
|
</p>
|
2010-08-26 04:39:38 -04:00
|
|
|
<p>Prepare a davmail.properties file according to your local needs :
|
2008-02-14 10:41:02 -05:00
|
|
|
</p>
|
2010-08-29 12:16:27 -04:00
|
|
|
<source><![CDATA[
|
|
|
|
davmail.url=http://exchangeServer/exchange/
|
2011-03-22 17:34:52 -04:00
|
|
|
davmail.enableEws=false
|
2010-08-29 12:16:27 -04:00
|
|
|
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.ssl.keystoreType=JKS
|
|
|
|
davmail.ssl.keyPass=
|
|
|
|
davmail.ssl.keystoreFile=
|
|
|
|
davmail.ssl.keystorePass=
|
2011-06-17 06:34:06 -04:00
|
|
|
davmail.smtpSaveInSent=true
|
2010-08-29 12:16:27 -04:00
|
|
|
davmail.server=true
|
|
|
|
davmail.server.certificate.hash=
|
|
|
|
davmail.bindAddress=
|
|
|
|
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]]>
|
2008-02-14 10:41:02 -05:00
|
|
|
</source>
|
|
|
|
<p>See
|
|
|
|
<a href="gettingstarted.html">Getting started</a>
|
|
|
|
for more information on
|
|
|
|
the options. Make sure davmail.server is set to true (no icon tray) and allow
|
|
|
|
remote connections: davmail.allowRemote=true.
|
|
|
|
</p>
|
2009-02-12 09:32:40 -05:00
|
|
|
<p>To disable a service, set an empty port value.</p>
|
2008-02-14 10:41:02 -05:00
|
|
|
<p>Launch Davmail with the following command:
|
|
|
|
<source>nohup davmail.sh davmail.properties &</source>.
|
|
|
|
</p>
|
|
|
|
<p>Then check messages:
|
|
|
|
<source>tail -f nohup.out</source>
|
|
|
|
</p>
|
2008-10-28 18:00:59 -04:00
|
|
|
</section>
|
|
|
|
|
2010-02-18 16:27:08 -05:00
|
|
|
<section name="Register DavMail windows service">
|
|
|
|
<p>A new experimental davmailservice.exe wrapper is available in the windows
|
|
|
|
package.
|
|
|
|
</p>
|
|
|
|
<p>To register DavMail as a windows service, use:
|
|
|
|
<source>davmailservice install</source>
|
|
|
|
or
|
|
|
|
<source>sc create DavMail binPath= \path\to\davmailservice.exe type= own start= auto</source>
|
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
|
2008-10-28 18:00:59 -04:00
|
|
|
<section name="DavMail Setup as a JEE Web Application">
|
2009-08-07 06:26:29 -04:00
|
|
|
<p>Prerequisites : Sun J2SE 1.5 or 1.6 and any JEE compliant web container
|
2008-10-28 18:00:59 -04:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>Davmail Gateway can now be deployed in any JEE application server using
|
|
|
|
the war package. In this mode, DavMail listener threads run inside the
|
|
|
|
application server and follow the web application lifecycle (start,
|
|
|
|
stop, deploy, undeploy). The following items describe Tomcat deployment,
|
|
|
|
details will vary according to the specific application server available.
|
|
|
|
</p>
|
|
|
|
|
2009-08-07 06:26:29 -04:00
|
|
|
<p>Download the war DavMail package from Sourceforge<code>davmail-*.war</code>,
|
2008-10-28 18:00:59 -04:00
|
|
|
and deploy it inside the application server. In Tomcat, this means copy the
|
|
|
|
war file to the webapps directory. If Tomcat is started and automatic
|
|
|
|
deployment enabled (this is the default configuration), the package is
|
|
|
|
automatically uncompressed and started.
|
|
|
|
</p>
|
|
|
|
<p>The davmail.properties configuration file is then available under
|
|
|
|
<code>davmail-*/WEB-INF/classes</code>.
|
|
|
|
</p>
|
2009-08-07 06:26:29 -04:00
|
|
|
|
2010-12-09 16:22:44 -05:00
|
|
|
<p>Note: DavMail does not use the standard Tomcat HTTP connector and uses the same listeners
|
|
|
|
in war and server modes. This means the HTTP port for Caldav url is specified in davmail.properties
|
|
|
|
</p>
|
|
|
|
|
2008-10-28 18:00:59 -04:00
|
|
|
<p>See above and
|
2008-02-14 10:41:02 -05:00
|
|
|
<a href="gettingstarted.html">Getting started</a>
|
2008-10-28 18:00:59 -04:00
|
|
|
for more information on
|
|
|
|
the options. Make sure davmail.server is set to true (no icon tray) and allow
|
|
|
|
remote connections: davmail.allowRemote=true.
|
2008-02-14 10:41:02 -05:00
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</body>
|
|
|
|
</document>
|