~fnux/mailadmin

Simple mail server management interface
cdc2398e — Timothée Floure 4 years ago
fix typo DB connect + fix logout redirect
c71c7021 — Timothée Floure 4 years ago
Allow URL prefix
64e9267f — Timothée Floure 4 years ago
Update dependencies

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~fnux/mailadmin
read/write
git@git.sr.ht:~fnux/mailadmin

You can also use your local clone with git send-email.

#Mail-admin

Simple mail server web interface, written in ruby using sinatra.

It's just a stupid webapp writing into the followings fields of a database :

domains users aliases
id id id
name mail source
password destination

You can configure a few things in the config.yml file.

#Setup

# Clone the project, copy (and fill) the example config file
bundle install
rackup # for development, take a look to thin or unicorn for production
-- Database initialization
CREATE TABLE domains(
  id INTEGER PRIMARY KEY NOT NULL,
  name CHAR(50) NOT NULL
);

CREATE TABLE users(
  id INTEGER PRIMARY KEY NOT NULL,
  mail CHAR(50) NOT NULL,
  password CHAR(50) NOT NULL
);

CREATE TABLE aliases(
  id INTEGER PRIMARY KEY NOT NULL,
  source CHAR(50) NOT NULL,
  destination CHAR(50) NOT NULL
);