2017 © Pedro Peláez
 

project postfix-admin

Postfix mailer admin interface

image

ksar/postfix-admin

Postfix mailer admin interface

  • Sunday, July 29, 2018
  • by ksar
  • Repository
  • 2 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

postfix-admin

version license [Scrutinizer Code Quality][scrutinizer-ci] composer.lock available ![build-status][travis-build-badge], (*1)

Basic admin interface for postfix service with settings hosted in mysql, (*2)

http://www.postfix.org/MYSQL_README.html, (*3)

Installation

Development Environment

  • install vendor libs: composer install
  • edit .env file manually
  • run migrations: console/yii migrate
  • run inernal server: console/yii serve

Production Environment

  • install vendor libs: composer install --no-dev
  • register your [environments] in the web server
  • run migrations: console/yii migrate --interactive=0

Environments

  • Debug settings:
    • YII_DEBUG - (true|false)
    • YII_ENV - system environment (dev|prod)
  • Request parameters
    • COOKIE_VALIDATION_KEY - random string, cookie salt
  • Uncomment to change site root
    • BASE_URL (optional) - change if admin rood different from the document root
  • Database settings
    • DB_DSN - database DSN (e.g. mysql:host=127.0.0.1;port=3306;dbname=postfix_mailer)
    • DB_USERNAME - database user name
    • DB_PASSWORD - database user password
    • DB_TABLE_PREFIX (optional)

Command line routines

  • console/yii migrate - Upgrades the application by applying new migrations
  • console/yii users - List users
  • console/yii users/disable - Disable user
  • console/yii users/enable - Enable user
  • console/yii users/passwd - Change password

Development routines

  • vendor/bin/phpcs --ignore=vendor --extensions=php --standard=PSR2 . - Run PSR checks

The Versions