Giter Site home page Giter Site logo

postfix-database's Introduction

Postfix Database

Configuration files and SQL scripts for configuring an email server based on Postfix and Dovecot using PostgreSQL or MySQL database backend.

This project doesn't contain the full database schema (tables), as it's intended as a companion to the PostfixRestServer project, which can create the necessary tables (see below).

Installation

You need to configure Postfix for virtual domains by setting the required virtual_* keys in main.cf and point them to the appropriate mysql_* files (if you are using MySQL database) or pgsql_* files (for PostgreSQL). Then configure Dovecot to use SQL authentication using the file in etc/dovecot.

Create a 'servermail' database and 'mailuser' user for your mail server and change the dbname, username and password in the configuration files accordingly. Of course you can change the database name, user's name or user's password. If you chose to do so, don't forget to check and modify the SQL scripts in the views directory accordingly.

Once the database and user are created in the database server you can use the PostfixRestServer to create the database tables by enabling spring.jpa.generate-ddl configuration parameter and set configure the database connection in application.properties and then create the views that are needed for Postfix and Dovecot using the scripts in the views directory.

Bug reports

If you discover any bugs, feel free to create an issue on GitHub. Please add as much information as possible to help me fixing the possible bug. I encourage you to help even more by forking the project and sending a pull request.

postfix-database's People

Contributors

lyubenblagoev avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

losanki

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.