Coder Social home page Coder Social logo

dovecot-crate's Introduction

Repository · Issues · API docs · Annotated source · Release Notes

A pallet crate to install and configure dovecot.

Dependency Information

:dependencies [[com.palletops/dovecot-crate "0.8.0-SNAPSHOT"]]

Releases

PalletCrate VersionRepoGroupId
0.8.0-RC.1 0.8.0-SNAPSHOT clojars com.palletops Release Notes Source

Usage

The dovecot crate provides a server-spec function that returns a server-spec. This server spec will install and run the dovecot server (not the dashboard). You pass a map of options to configure dovecot. The :config value should be a form that will be output as the dovecot configuration.

The server-spec provides an easy way of using the crate functions, and you can use the following crate functions directly if you need to.

The settings function provides a plan function that should be called in the :settings phase. The function puts the configuration options into the pallet session, where they can be found by the other crate functions, or by other crates wanting to interact with the dovecot server. The settings are made up of a :master key, with a value as a sequence of maps, each specifying a daemon as specified in master.cnf.

The :supervision key in the settings allows running dovecot under :runit, :upstart or :nohup.

The install function is responsible for actually installing dovecot. At present installation from tarball url is the only supported method. Installation from deb or rpm url would be nice to add, as these are now available from the dovecot site.

The configure function writes the dovecot configuration file, using the form passed to the :config key in the settings function.

The run function starts the dovecot server.

Live test on vmfest

For example, to run the live test on VMFest, using Ubuntu 12.04:

lein with-profile +vmfest pallet up --selectors ubuntu-12-04 --phases install,configure,test
lein with-profile +vmfest pallet down --selectors ubuntu-12-04

License

Copyright (C) 2012, 2013 Hugo Duncan

Distributed under the Eclipse Public License.

dovecot-crate's People

Contributors

hugoduncan avatar

Watchers

 avatar  avatar  avatar

Forkers

zenlambda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.