Skip to content
/ cmd Public

Command line administrator tools [apache2, nginx, letsencrypt, postfix, dovecot, spamassassin].

License

Notifications You must be signed in to change notification settings

syntaxerro/cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syntaxerro CMD Tools

Command line administrator tools written in PHP.

Installation:

  • Require git and composer for installation.
  • Require PHP >=5.5 for execute.
  • Create symlink as /usr/local/bin/manager if sudo.
  • Copy and paste this command.
Local
curl -k https://cdn.rawgit.com/syntaxerro/cmd/master/bash/install.sh | bash
Global
curl -k https://cdn.rawgit.com/syntaxerro/cmd/master/bash/install.sh | sudo bash

Features:

./app.php http:add example.com
./app.php http:add example.com --nginx
./app.php http:add example.com --template "custom-template-name"
  • Builtin nginx symfony vhost template.
./app.php http:add example.com --nginx --template 'nginx-symfony'
  • Create vhost with SSL support and auto redirection for not supported SNI certificates.
./app.php http:add example.com --ssl
  • List users or domains from postfix + dovecot database.
./app.php smtp:list [user|domain]
  • Adding aliases, users or domains to postfix + dovecot database.
./app.php smtp:add [alias|user|domain]
  • Removing aliases, users or domains to postfix + dovecot database.
./app.php smtp:rm [alias|user|domain]
  • Change passwords of users in postfix + dovecot database.
./app.php smtp:pass user@example.com
# *** Adding new domain. ***
#
# Parameter: domain name, eg. "example.com"
new_domain: "INSERT INTO virtual_domains SET name='%s'"
  • Creating default postfix, dovecot and spamassassin database schema.
./app.php smtp:database
  • Add blacklist or whitelist items to SpamAssassin user preferences database.
./app.php spam:add [black|white]
  • Removing blacklist or whitelist items from SpamAssassin user preferences database.
./app.php spam:rm [black|white]
  • Cat all rotated logs in directory.
./app.php catr /var/log/nginx example.com

About

Command line administrator tools [apache2, nginx, letsencrypt, postfix, dovecot, spamassassin].

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published