

That is, when you go looking for IMAP, you'll find it accessible at 127.0.0.1:11143 from the cloud instance only this prevents attackers from being able to connect to your davmail instance remotely. binds only to ports on the loopback interface.We additionally tell docker to bind ours such that our cloud instance: Remember nix systems disallow non-privileged process from binding to ports < 1024, and as such ours have been remapped. Our Docker port-forwards are also established from the "trial run" log above we can see that the ports davmail will listen on are:

Not surprisingly, the heart is centered around the docker run command that we can see at the core of the upstart config.

It's worth mentioning that adding your userid to this group will allow you to interface with the docker service without needing to "sudo" it all the time this is left as an exercise for the reader. On line 33 we see a docker group being created.

Our previous tutorial on containing Chef with Vagrant may provide some guidelines, but, as always, this is left as an exercise for the reader. You can fire up basic Ubuntu machine fairly easily. Prerequisitesįor the purposes of this article, we're going to assume that you're an enligtened sort, and are running a Ubuntu 14.04-based cloud instance (or workstation, or.). Even if your mail is boring beyond belief, please, do not access it unencrypted. Common - and well-established - solutions include the use of ssh port forwarding or (for a less ad-hoc approach) stunnel. Security is of utmost concern, particularly in a corporate environment, so please note that securing the connections between your local workstation and the cloud instance. One may find a more satisfying approach in using tools like puppet-git-receiver and Gareth Rushgrove's most excellent docker Puppet Forge module to manage the use of the upstream Docker packages as well as our container's upstart configuration - both of which will be covered in a future tutorial. For simplicity, we're using the docker.io package from Ubuntu and configuring by hand. Provisioning a CenturyLink Cloud instance is left as an exercise for the reader. Install Docker on a CenturyLink Cloud instance, provision a stateless container image running a davmail instance, and have the system manage the container via upstart. It's also standalone, can be used statelessly, and - with apologies - is Java, making it a fantastic candidate for running inside a Docker container. It's a great tool - and one of the only solutions. davmail is a Java application that knows how to translate between standards-compliant clients (like, say, Thunderbird) and an Exchange server that speaks only Exchange. This may pose a problem for you, if you prefer a non-Microsoft mail client: if the compatibility features are enabled, you'll be able to access your mail via IMAP and send over SMTP, as the Internet intended. #ExecStart=/usr/bin/davmail /etc/conf.d/davmail.propertiesĮnvironment=BASE=/path/to/davmail-linux-x86_64-4.8.0-2479/Įnvironment=PROPERTIES=/path/to/.davmail.Love it or hate it, sometimes we have to use an Exchange server to communicate. Dude took less than 20 minutes and had me a working rvice file that will run automagically and restart if it happens to die, oh and get this. However today in #systemadmins I tossed out a question and it was fielded by a guy who I'd consider quite the senior in the whole *nix/SysAdmin world. Nothing gets logged anywhere, the pid just dies. Now for quite a while I've been suffering through DavMail just quitting on me. Since Evolution is clunky and rather ugly I decided to brave the DavMail world with Thunderbird. So I can't recall if I posted about this or not but since switching full time to Fedora I've had to get creative with email clients.
