GithubHelp home page GithubHelp logo

lucatze / scrambler-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from posteo/scrambler-plugin

0.0 2.0 0.0 994 KB

Dovecot plugin to enable encrypted storage

License: GNU Affero General Public License v3.0

Ruby 30.01% Makefile 2.41% HTML 20.24% Shell 0.19% C 47.15%

scrambler-plugin's Introduction

Dovecot encryption plugin

Requirements

  • Ensure GCC and the header files for libcrypto (OpenSSL) and libxcrypt are installed.

Installation

  • Use make dovecot-install to download and build dovecot 2.2.21 in a sub-directory. It's a local installation and your system wont be affected.

  • Type make all to compile the plugin.

  • Find the plugin at dovecot/target/lib/dovecot/lib18_scrambler_plugin.so.

Tests

  • Ensure the ruby version manager is installed.

  • Install ruby version 2.1.x with command rvm install 2.1.

  • Install the bundler gem with gem install bundler.

  • Install the gem bundle with bundle install.

All tests are written with RSpec and can be run with make spec-all or bundle exec rake spec:integration

Configuration

In order to run, the plugin needs the following configuration values (via the dovecot environment).

  • scrambler_plain_password The plain user password. It's used to derive the hashed password to decrypt the private key.

  • scrambler_enabled Can be 1 or 0.

  • scrambler_public_key The public key of the user. Formatted as pem.

  • scrambler_private_key The encrypted private key of the user. Formatted as pem.

  • scrambler_private_key_salt The salt of the hashed password that has been used to encrypt the private key.

  • scrambler_private_key_iterations The number of iterations of the hashed password that has been used to encrypt the private key.

A configuration example can be found at dovecot/configuration/dovecot-sql.conf.ext.erb.

Migration

The migration of unencrypted mailboxes has to be done by a separate tool and is not part of this project.

Project

Concept, design and realization by Posteo e.K.. The implementation was provided by simia.tech GbR. An security audit has been provided by Cure53.

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.